From 8c7dd39f0211796e7d39e4dd59b20a82292e0138 Mon Sep 17 00:00:00 2001 From: Benedikt Bartscher Date: Thu, 29 Feb 2024 01:55:56 +0100 Subject: [PATCH] fix EventSpec args type annotation for pydantic v2 --- reflex/event.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reflex/event.py b/reflex/event.py index d81e257f9..912a18d4f 100644 --- a/reflex/event.py +++ b/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."""