We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3679e96 commit c46f52bCopy full SHA for c46f52b
temporalio/converter.py
@@ -1590,9 +1590,9 @@ def value_to_type(
1590
elif key_type is type(None):
1591
key = {"null": None}[key]
1592
1593
- # Can't call isinstance of key_type is a newtype
1594
- supertype = getattr(key_type, "__supertype__", None)
1595
- if supertype or not isinstance(key, key_type):
+ # Can't call isinstance if key_type is a newtype
+ is_newtype = getattr(key_type, "__supertype__", None)
+ if is_newtype or not isinstance(key, key_type):
1596
key = value_to_type(key_type, key, custom_converters)
1597
except Exception as err:
1598
raise TypeError(
0 commit comments