diff --git a/taipy/gui/state.py b/taipy/gui/state.py index b60122e227..dc0e7124c7 100644 --- a/taipy/gui/state.py +++ b/taipy/gui/state.py @@ -117,6 +117,8 @@ def __filter_var_list(var_list: t.Iterable[str], excluded_attrs: t.Iterable[str] return filter(lambda n: n not in excluded_attrs, var_list) def __getattribute__(self, name: str) -> t.Any: + if name == "__class__": + return State if name in State.__methods: return super().__getattribute__(name) gui: "Gui" = self.get_gui()