Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Nov 4, 2024
1 parent 5715dc8 commit 29db230
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cobaya/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class InputDict(ModelDict, total=False):
force: bool
debug: Union[bool, int, str]
resume: bool
minimize: bool
stop_at_error: bool
test: bool
timing: bool
Expand Down Expand Up @@ -175,8 +176,8 @@ def validate_type(expected_type: type, value: Any, path: str = ''):
return validate_type(t, value, path)
except TypeError as e:
error_msg = str(e)
if ' any Union type' in error_msg or 'for TypedDict ' in error_msg:
raise
# if ' any Union type' in error_msg or 'for TypedDict ' in error_msg:
# raise
error_path = error_msg.split(' ')[0].strip("'")
errors.append((error_path, error_msg))

Expand Down

0 comments on commit 29db230

Please sign in to comment.