소스 검색

do not check attribute type for var internals (#3357)

benedikt-bartscher 1 년 전
부모
커밋
0b613d5d3b
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      reflex/vars.py

+ 5 - 1
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(