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 7f8b90c commit fe5069bCopy full SHA for fe5069b
temporalio/converter.py
@@ -1764,13 +1764,7 @@ def value_to_type(
1764
elif key_type is type(None):
1765
key = {"null": None}[key]
1766
1767
- # Can't call isinstance if key_type is a newtype
1768
- is_newtype = getattr(key_type, "__supertype__", None)
1769
- if (
1770
- is_newtype
1771
- or not isinstance(key_type, type)
1772
- or not isinstance(key, key_type)
1773
- ):
+ if not isinstance(key_type, type) or not isinstance(key, key_type):
1774
key = value_to_type(key_type, key, custom_converters)
1775
except Exception as err:
1776
raise TypeError(
0 commit comments