From dbf43b1b09cf939ab7d0e376e486762b3f44a1e5 Mon Sep 17 00:00:00 2001 From: Elijah Date: Thu, 26 Sep 2024 15:17:37 +0000 Subject: [PATCH] precommit fix --- reflex/state.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reflex/state.py b/reflex/state.py index 515370be0..cfe820141 100644 --- a/reflex/state.py +++ b/reflex/state.py @@ -1260,6 +1260,9 @@ class BaseState(Base, ABC, extra=pydantic.Extra.allow): Args: name: The name of the attribute. value: The value of the attribute. + + Raises: + AttributeError: If a value of a var is set without first defining it. """ if isinstance(value, MutableProxy): # unwrap proxy objects when assigning back to the state