reorder if checks

This commit is contained in:
Elijah 2024-10-03 16:58:27 +00:00
parent c51d6752c6
commit fa8f7be00c

View File

@ -1282,9 +1282,9 @@ class BaseState(Base, ABC, extra=pydantic.Extra.allow):
return
if (
not name.startswith("__")
name not in self.vars
and not name.startswith("__")
and not name.startswith(f"_{type(self).__name__}__")
and name not in self.vars
and name not in self.get_skip_vars()
):
raise SetUndefinedStateVarError(