Skip to content

Commit 777bb73

Browse files
author
sanyam-brudite
committed
Fix redundant get_proper_type call in checker.py
1 parent 1c65fb6 commit 777bb73

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
@@ -8173,7 +8173,7 @@ def get_type_range_of_type(self, typ: Type) -> TypeRange | None:
81738173
# Type[A] means "any type that is a subtype of A" rather than "precisely type A"
81748174
# we indicate this by setting is_upper_bound flag
81758175
is_upper_bound = True
8176-
item = get_proper_type(typ.item)
8176+
item = typ.item
81778177
if isinstance(item, TypeVarType) and item.id.is_self():
81788178
is_upper_bound = False
81798179
elif isinstance(item, NoneType):

0 commit comments

Comments
 (0)