MCPcopy Index your code
hub / github.com/python/mypy / conditional_types

Function conditional_types

mypy/checker.py:8555–8562  ·  view source on GitHub ↗
(
    current_type: Type,
    proposed_type_ranges: list[TypeRange] | None,
    default: None = None,
    *,
    consider_runtime_isinstance: bool = True,
    from_equality: bool = False,
)

Source from the content-addressed store, hash-verified

8553
8554@overload
8555def conditional_types(
8556 current_type: Type,
8557 proposed_type_ranges: list[TypeRange] | None,
8558 default: None = None,
8559 *,
8560 consider_runtime_isinstance: bool = True,
8561 from_equality: bool = False,
8562) -> tuple[Type | None, Type | None]: ...
8563
8564
8565@overload

Calls 15

UninhabitedTypeClass · 0.90
get_proper_typeFunction · 0.90
make_simplified_unionFunction · 0.90
is_proper_subtypeFunction · 0.90
is_subtypeFunction · 0.90
restrict_subtype_awayFunction · 0.90
is_overlapping_typesFunction · 0.90
lenFunction · 0.85
isinstanceFunction · 0.85
rangeClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…