Skip to content

Commit 48fa581

Browse files
committed
.
1 parent 87617ca commit 48fa581

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7963,7 +7963,7 @@ def get_isinstance_type(
79637963
def get_type_range_of_type(self, typ: Type) -> TypeRange | None:
79647964
typ = get_proper_type(typ)
79657965
if isinstance(typ, TypeVarType):
7966-
typ = typ.upper_bound
7966+
typ = get_proper_type(typ.upper_bound)
79677967

79687968
if isinstance(typ, UnionType):
79697969
type_ranges = [self.get_type_range_of_type(item) for item in typ.items]

0 commit comments

Comments
 (0)