We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87617ca commit 48fa581Copy full SHA for 48fa581
1 file changed
mypy/checker.py
@@ -7963,7 +7963,7 @@ def get_isinstance_type(
7963
def get_type_range_of_type(self, typ: Type) -> TypeRange | None:
7964
typ = get_proper_type(typ)
7965
if isinstance(typ, TypeVarType):
7966
- typ = typ.upper_bound
+ typ = get_proper_type(typ.upper_bound)
7967
7968
if isinstance(typ, UnionType):
7969
type_ranges = [self.get_type_range_of_type(item) for item in typ.items]
0 commit comments