MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / is_union

Function is_union

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

Source from the content-addressed store, hash-verified

579
580
581def is_union(type_: Any) -> TypeGuard[ArgsTypeProtocol]:
582 return is_origin_of(type_, "Union", "UnionType")
583
584
585def is_origin_of_cls(

Callers 4

declarative_scanMethod · 0.85
recursive_valueFunction · 0.85
includes_noneFunction · 0.85

Calls 1

is_origin_ofFunction · 0.85

Tested by

no test coverage detected