From 4ee16bab75649609b8837c79c5b7c201b8423290 Mon Sep 17 00:00:00 2001 From: Benedikt Bartscher Date: Mon, 28 Oct 2024 21:10:08 +0100 Subject: [PATCH] fix darglint --- reflex/config.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/reflex/config.py b/reflex/config.py index 39f9b8485..3d0b99095 100644 --- a/reflex/config.py +++ b/reflex/config.py @@ -384,6 +384,9 @@ class env_var: # type: ignore Args: instance: The instance. owner: The owner class. + + Returns: + The EnvVar instance. """ type_ = get_args(get_type_hints(owner)[self.name])[0] name = self.name @@ -395,7 +398,15 @@ class env_var: # type: ignore if TYPE_CHECKING: def env_var(default, internal=False) -> EnvVar: - """Typing helper for the env_var descriptor.""" + """Typing helper for the env_var descriptor. + + Args: + default: The default value. + internal: Whether the environment variable is reflex internal. + + Returns: + The EnvVar instance. + """ return default