MCPcopy Index your code
hub / github.com/fastapi/sqlmodel / ObjectWithUpdateWrapper

Class ObjectWithUpdateWrapper

sqlmodel/_compat.py:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51@dataclass
52class ObjectWithUpdateWrapper:
53 obj: Any
54 update: dict[str, Any]
55
56 def __getattribute__(self, __name: str) -> Any:
57 update = super().__getattribute__("update")
58 obj = super().__getattribute__("obj")
59 if __name in update:
60 return update[__name]
61 return getattr(obj, __name)
62
63
64def _is_union_type(t: Any) -> bool:

Callers 1

sqlmodel_validateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…