| 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. |
| 45 | class 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…