MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / is_literal

Function is_literal

lib/sqlalchemy/util/typing.py:329–330  ·  view source on GitHub ↗
(type_: Any)

Source from the content-addressed store, hash-verified

327
328
329def is_literal(type_: Any) -> bool:
330 return get_origin(type_) in _type_tuples.Literal
331
332
333def is_newtype(type_: Optional[_AnnotationScanType]) -> TypeGuard[NewType]:

Callers 4

_resolve_typeMethod · 0.85
_collect_annotationMethod · 0.85
de_stringify_annotationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected