File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 120120 "packages/reflex-components-sonner/src/reflex_components_sonner/toast.pyi" : " f09c503c4ab880c13c13d6fa67d708b8" ,
121121 "reflex/__init__.pyi" : " 7696c38fd9c04a598518b49c5185c414" ,
122122 "reflex/components/__init__.pyi" : " 55bb242d5e5428db329b88b4923c2ba5" ,
123- "reflex/experimental/memo.pyi" : " d16eccf33993c781e2f8bc2dd8bbd4d4 "
123+ "reflex/experimental/memo.pyi" : " 2566571c9f68fce5e8178e8acac11944 "
124124}
Original file line number Diff line number Diff line change 1717from reflex_core .constants .state import CAMEL_CASE_MEMO_MARKER
1818from reflex_core .utils import format
1919from reflex_core .utils .imports import ImportVar
20+ from reflex_core .utils .types import safe_issubclass
2021from reflex_core .vars import VarData
2122from reflex_core .vars .base import LiteralVar , Var
2223from reflex_core .vars .function import (
@@ -254,11 +255,11 @@ def _is_component_annotation(annotation: Any) -> bool:
254255 """
255256 origin = get_origin (annotation ) or annotation
256257 return isinstance (origin , type ) and (
257- issubclass (origin , Component )
258+ safe_issubclass (origin , Component )
258259 or bool (
259- issubclass (origin , Var )
260+ safe_issubclass (origin , Var )
260261 and (args := get_args (annotation ))
261- and issubclass (args [0 ], Component )
262+ and safe_issubclass (args [0 ], Component )
262263 )
263264 )
264265
You can’t perform that action at this time.
0 commit comments