Skip to content

Commit

Permalink
Update omegaconf/_utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas MK <[email protected]>
  • Loading branch information
2 people authored and jordan-schneider committed Mar 26, 2022
1 parent 59eb792 commit 5d1b801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omegaconf/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ def type_str(t: Any, include_module_name: bool = False) -> str:
if hasattr(t, "__name__"):
name = str(t.__name__)
else:
if hasattr(t, "__origin__") and t.__origin__ is not None:
if getattr(t, "__origin__", None) is not None:
name = type_str(t.__origin__)
else:
name = str(t)
Expand Down

0 comments on commit 5d1b801

Please sign in to comment.