Преглед на файлове

fix typeddict as annotation (#5324)

Thomas Brandého преди 1 седмица
родител
ревизия
9251be1355
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      reflex/utils/types.py

+ 1 - 1
reflex/utils/types.py

@@ -996,7 +996,7 @@ def typehint_issubclass(
     Returns:
         Whether the type hint is a subclass of the other type hint.
     """
-    if possible_superclass is Any:
+    if possible_subclass is possible_superclass or possible_superclass is Any:
         return True
     if possible_subclass is Any:
         return treat_any_as_subtype_of_everything