浏览代码

fix EventSpec args type annotation for pydantic v2

Benedikt Bartscher 1 年之前
父节点
当前提交
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 = ""
     client_handler_name: str = ""
 
 
     # The arguments to pass to the function.
     # 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:
     class Config:
         """The Pydantic config."""
         """The Pydantic config."""