MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / is_newtype

Function is_newtype

lib/sqlalchemy/util/typing.py:333–334  ·  view source on GitHub ↗
(type_: Optional[_AnnotationScanType])

Source from the content-addressed store, hash-verified

331
332
333def is_newtype(type_: Optional[_AnnotationScanType]) -> TypeGuard[NewType]:
334 return isinstance(type_, _type_tuples.NewType)
335
336
337def is_generic(type_: _AnnotationScanType) -> TypeGuard[GenericProtocol[Any]]:

Callers 1

includes_noneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected