Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
581
def
is_union(type_: Any) -> TypeGuard[ArgsTypeProtocol]:
582
return
is_origin_of(type_,
"Union"
,
"UnionType"
)
583
584
585
def
is_origin_of_cls(
Callers
4
declarative_scan
Method · 0.85
recursive_value
Function · 0.85
de_optionalize_union_types
Function · 0.85
includes_none
Function · 0.85
Calls
1
is_origin_of
Function · 0.85
Tested by
no test coverage detected