From 89ea0de4c5566f8163495c772789640fe6ceb67c Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Thu, 17 Oct 2024 14:54:29 -0700 Subject: [PATCH] dang it darglint --- reflex/state.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reflex/state.py b/reflex/state.py index 5eeed36cc..fb05d558f 100644 --- a/reflex/state.py +++ b/reflex/state.py @@ -2103,6 +2103,10 @@ def dynamic(func: Callable[[T], Component]): Returns: The dynamically generated component. + + Raises: + ValueError: If the function does not have exactly one parameter. + ValueError: If the function does not have a type hint for the state class. """ number_of_parameters = len(inspect.signature(func).parameters)