reorder if checks
This commit is contained in:
parent
c51d6752c6
commit
fa8f7be00c
@ -1282,9 +1282,9 @@ class BaseState(Base, ABC, extra=pydantic.Extra.allow):
|
|||||||
return
|
return
|
||||||
|
|
||||||
if (
|
if (
|
||||||
not name.startswith("__")
|
name not in self.vars
|
||||||
|
and not name.startswith("__")
|
||||||
and not name.startswith(f"_{type(self).__name__}__")
|
and not name.startswith(f"_{type(self).__name__}__")
|
||||||
and name not in self.vars
|
|
||||||
and name not in self.get_skip_vars()
|
and name not in self.get_skip_vars()
|
||||||
):
|
):
|
||||||
raise SetUndefinedStateVarError(
|
raise SetUndefinedStateVarError(
|
||||||
|
Loading…
Reference in New Issue
Block a user