From 0b613d5d3b456eea532c56dacecc0b4868062b47 Mon Sep 17 00:00:00 2001 From: benedikt-bartscher <31854409+benedikt-bartscher@users.noreply.github.com> Date: Wed, 22 May 2024 20:35:42 +0200 Subject: [PATCH] do not check attribute type for var internals (#3357) --- reflex/vars.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reflex/vars.py b/reflex/vars.py index be6aa7eb8..601caac5d 100644 --- a/reflex/vars.py +++ b/reflex/vars.py @@ -704,7 +704,11 @@ class Var: """ try: var_attribute = super().__getattribute__(name) - if not name.startswith("_"): + if ( + not name.startswith("_") + and name not in Var.__dict__ + and name not in BaseVar.__dict__ + ): # Check if the attribute should be accessed through the Var instead of # accessing one of the Var operations type_ = types.get_attribute_access_type(