Skip to content

Commit 23e1ced

Browse files
committed
ah did this guy wrong
1 parent 38c967c commit 23e1ced

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

reflex/istate/proxy.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -350,13 +350,6 @@ def mark_dirty(self):
350350
raise NotImplementedError(msg)
351351

352352

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-
360353
MUTABLE_TYPES = (
361354
list,
362355
dict,
@@ -572,8 +565,7 @@ def __getattr__(self, __name: str) -> Any:
572565
)
573566

574567
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
577569
and not inspect.isclass(getattr(value, "__self__", None))
578570
# skip SQLAlchemy instrumented methods
579571
and not getattr(value, "_sa_instrumented", False)

0 commit comments

Comments
 (0)