MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / is_generic

Function is_generic

lib/sqlalchemy/util/typing.py:337–338  ·  view source on GitHub ↗
(type_: _AnnotationScanType)

Source from the content-addressed store, hash-verified

335
336
337def is_generic(type_: _AnnotationScanType) -> TypeGuard[GenericProtocol[Any]]:
338 return hasattr(type_, "__args__") and hasattr(type_, "__origin__")
339
340
341def is_pep695(type_: _AnnotationScanType) -> TypeGuard[TypeAliasType]:

Callers 5

_resolve_typeMethod · 0.85
de_stringify_annotationFunction · 0.85
fixup_container_fwd_refsFunction · 0.85
is_pep695Function · 0.85
is_fwd_refFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected