1
0
Эх сурвалжийг харах

fix EventSpec args type annotation for pydantic v2

Benedikt Bartscher 1 жил өмнө
parent
commit
8c7dd39f02
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      reflex/event.py

+ 2 - 1
reflex/event.py

@@ -216,7 +216,8 @@ class EventSpec(EventActionsMixin):
     client_handler_name: str = ""
 
     # The arguments to pass to the function.
-    args: Tuple[Tuple[Var, Var], ...] = ()
+    # TODO: pydantic v2 add rx.Var type annotation?
+    args: Tuple[Tuple[Any, Any], ...] = ()
 
     class Config:
         """The Pydantic config."""