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

Function init_pydantic_private_attrs

sqlmodel/_compat.py:94–97  ·  view source on GitHub ↗
(new_object: InstanceOrType["SQLModel"])

Source from the content-addressed store, hash-verified

92
93
94def init_pydantic_private_attrs(new_object: InstanceOrType["SQLModel"]) -> None:
95 object.__setattr__(new_object, "__pydantic_fields_set__", set())
96 object.__setattr__(new_object, "__pydantic_extra__", None)
97 object.__setattr__(new_object, "__pydantic_private__", None)
98
99
100def get_annotations(class_dict: dict[str, Any]) -> dict[str, Any]:

Callers 1

__new__Method · 0.85

Calls 1

__setattr__Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…