Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ggalloni committed Oct 2, 2024
1 parent 436e70d commit 19e4143
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cobaya/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,6 @@ def _validate_type(self, expected_type, value):
return self._validate_composite_type(expected_type, value)
else:
# Exceptions for some types
# if isinstance(expected_type, ForwardRef): # for custom types as ParamDict
# if "Dict" in expected_type.__forward_arg__:
# expected_type = dict
if expected_type is ParamDict:
return isinstance(value, dict)
elif expected_type is int:
Expand Down

0 comments on commit 19e4143

Please sign in to comment.