Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sqlalchemy/sqlalchemy
/ is_composite_class
Function
is_composite_class
lib/sqlalchemy/orm/_typing.py:129–133 ·
view source on GitHub ↗
(obj: Any)
Source
from the content-addressed store, hash-verified
127
128
129
def
is_composite_class(obj: Any) -> bool:
130
# inlining is_dataclass(obj)
131
return
hasattr(obj,
"__composite_values__"
) or hasattr(
132
obj,
"__dataclass_fields__"
133
)
134
135
136
if
TYPE_CHECKING:
Callers
1
_get_impl
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected