Skip to content

Commit 4d6bdf4

Browse files
committed
Fix own typing
1 parent f04fd93 commit 4d6bdf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2826,10 +2826,10 @@ class C(B, A[int]): ... # this is unsafe because...
28262826
ok = is_subtype(first_sig, second_sig, ignore_pos_arg_names=True)
28272827
elif first_type and second_type:
28282828
if isinstance(first.node, Var):
2829-
first_type = map_type_from_supertype(first_type, ctx, base1)
2829+
first_type = get_proper_type(map_type_from_supertype(first_type, ctx, base1))
28302830
first_type = expand_self_type(first.node, first_type, fill_typevars(ctx))
28312831
if isinstance(second.node, Var):
2832-
second_type = map_type_from_supertype(second_type, ctx, base2)
2832+
second_type = get_proper_type(map_type_from_supertype(second_type, ctx, base2))
28332833
second_type = expand_self_type(second.node, second_type, fill_typevars(ctx))
28342834
ok = is_equivalent(first_type, second_type)
28352835
if not ok:

0 commit comments

Comments
 (0)