fix EventSpec args type annotation for pydantic v2

This commit is contained in:
Benedikt Bartscher 2024-02-29 01:55:56 +01:00
parent 80a25d6b29
commit 8c7dd39f02
No known key found for this signature in database

View File

@ -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."""