Skip to content

Commit 9251be1

Browse files
authored
fix typeddict as annotation (#5324)
1 parent 2f17daf commit 9251be1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reflex/utils/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ def typehint_issubclass(
996996
Returns:
997997
Whether the type hint is a subclass of the other type hint.
998998
"""
999-
if possible_superclass is Any:
999+
if possible_subclass is possible_superclass or possible_superclass is Any:
10001000
return True
10011001
if possible_subclass is Any:
10021002
return treat_any_as_subtype_of_everything

0 commit comments

Comments
 (0)