MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _inspect_generic_alias

Function _inspect_generic_alias

lib/sqlalchemy/orm/util.py:1547–1551  ·  view source on GitHub ↗
(
    class_: Type[_O],
)

Source from the content-addressed store, hash-verified

1545
1546@inspection._inspects(GenericAlias)
1547def _inspect_generic_alias(
1548 class_: Type[_O],
1549) -> Optional[Mapper[_O]]:
1550 origin = cast("Type[_O]", get_origin(class_))
1551 return _inspect_mc(origin)
1552
1553
1554@inspection._self_inspects

Callers

nothing calls this directly

Calls 2

_inspect_mcFunction · 0.85
castFunction · 0.50

Tested by

no test coverage detected