Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
329
def
is_literal(type_: Any) -> bool:
330
return
get_origin(type_) in _type_tuples.Literal
331
332
333
def
is_newtype(type_: Optional[_AnnotationScanType]) -> TypeGuard[NewType]:
Callers
4
_resolve_for_python_type
Method · 0.85
_resolve_type
Method · 0.85
_collect_annotation
Method · 0.85
de_stringify_annotation
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected