From 5d1b801b2219888a91f7c3ef02bc4d49a0845469 Mon Sep 17 00:00:00 2001 From: Jordan Schneider Date: Sun, 13 Mar 2022 14:54:12 -0500 Subject: [PATCH] Update omegaconf/_utils.py Co-authored-by: Thomas MK --- omegaconf/_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omegaconf/_utils.py b/omegaconf/_utils.py index d7f58e790..daa4f50d0 100644 --- a/omegaconf/_utils.py +++ b/omegaconf/_utils.py @@ -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)