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

Class TypeRange

mypy/checker_shared.py:45–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43# An object that represents either a precise type or a type with an upper bound;
44# it is important for correct type inference with isinstance.
45class TypeRange:
46 def __init__(self, item: Type, is_upper_bound: bool) -> None:
47 self.item: Final = item
48 self.is_upper_bound: Final = is_upper_bound # False => precise type
49
50
51@trait

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…