Skip to content

Commit

Permalink
Ongoing work
Browse files Browse the repository at this point in the history
  • Loading branch information
dstrigl committed Jun 27, 2023
1 parent c72d64c commit 551197f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions htheatpump/htparams.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import csv
import enum
from os import path
from typing import Any, Dict, ItemsView, KeysView, Optional, Tuple, Union, ValuesView, get_args
from typing import Any, Dict, ItemsView, KeysView, Optional, Tuple, Union, ValuesView #, get_args

from .utils import Singleton

Expand Down Expand Up @@ -309,8 +309,8 @@ def check_value_type(
Will be raised if the passed value has an invalid type.
"""
if isinstance(self, HtParam): # called as a member method of HtParam
assert isinstance(arg, get_args(HtParamValueType))
HtParam._check_value_type(arg, self.data_type)
# TODO assert isinstance(arg, get_args(HtParamValueType))
HtParam._check_value_type(arg, self.data_type) # type: ignore
else: # called as a static method of HtParam
assert isinstance(arg, HtDataTypes)
HtParam._check_value_type(self, arg)
Expand Down Expand Up @@ -364,8 +364,8 @@ def to_str(
:rtype: ``str``
"""
if isinstance(self, HtParam): # called as a member method of HtParam
assert isinstance(arg, get_args(HtParamValueType))
return HtParam._to_str(arg, self.data_type)
# TODO assert isinstance(arg, get_args(HtParamValueType))
return HtParam._to_str(arg, self.data_type) # type: ignore
else: # called as a static method of HtParam
assert isinstance(arg, HtDataTypes)
return HtParam._to_str(self, arg)
Expand Down

0 comments on commit 551197f

Please sign in to comment.