File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments