Skip to content

Commit c46f52b

Browse files
committed
Change names
1 parent 3679e96 commit c46f52b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

temporalio/converter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,9 +1590,9 @@ def value_to_type(
15901590
elif key_type is type(None):
15911591
key = {"null": None}[key]
15921592

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):
1593+
# Can't call isinstance if key_type is a newtype
1594+
is_newtype = getattr(key_type, "__supertype__", None)
1595+
if is_newtype or not isinstance(key, key_type):
15961596
key = value_to_type(key_type, key, custom_converters)
15971597
except Exception as err:
15981598
raise TypeError(

0 commit comments

Comments
 (0)