Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 committed Dec 5, 2024
1 parent a41468c commit de84b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fgpyo/util/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def attr_from(
# True, because python, so we need to check for that explicitly
if not set_value and attribute.type is not None and not attribute.type == bool:
try:
return_value = attribute.type(str_value)
return_value = attribute.type(str_value) # type: ignore[operator]
set_value = True
except (ValueError, TypeError):
pass
Expand Down

0 comments on commit de84b0c

Please sign in to comment.