Skip to content

Commit

Permalink
Use is for type comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree committed Jul 24, 2024
1 parent d0ed980 commit 98b9990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ford/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def convert_setting(default_type: Type, key: str, value: Any) -> Any:
is_same_type(default_type, str) or is_same_type(default_type, Path)
) and isinstance(value, list):
return "\n".join(value)
elif (get_origin(default_type) == dict) and not isinstance(value, dict):
elif (get_origin(default_type) is dict) and not isinstance(value, dict):
resvalue = value
if isinstance(value, str):
resvalue = [value]
Expand Down

0 comments on commit 98b9990

Please sign in to comment.