We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38c967c commit 23e1cedCopy full SHA for 23e1ced
1 file changed
reflex/istate/proxy.py
@@ -350,13 +350,6 @@ def mark_dirty(self):
350
raise NotImplementedError(msg)
351
352
353
-if find_spec("pydantic"):
354
- import pydantic
355
-
356
- NEVER_WRAP_BASE_ATTRS = set(pydantic.BaseModel.__dict__)
357
-else:
358
- NEVER_WRAP_BASE_ATTRS = {}
359
360
MUTABLE_TYPES = (
361
list,
362
dict,
@@ -572,8 +565,7 @@ def __getattr__(self, __name: str) -> Any:
572
565
)
573
566
574
567
if (
575
- __name not in NEVER_WRAP_BASE_ATTRS
576
- and (func := getattr(value, "__func__", None)) is not None
568
+ (func := getattr(value, "__func__", None)) is not None
577
569
and not inspect.isclass(getattr(value, "__self__", None))
578
570
# skip SQLAlchemy instrumented methods
579
571
and not getattr(value, "_sa_instrumented", False)
0 commit comments