@@ -2155,7 +2155,7 @@ def check_method_override_for_base_with_name(
2155
2155
and original_node
2156
2156
and codes .MUTABLE_OVERRIDE in self .options .enabled_error_codes
2157
2157
and self .is_writable_attribute (original_node )
2158
- and not is_subtype (original_type , typ , ignore_pos_arg_names = True )
2158
+ and not is_subtype (original_type , typ )
2159
2159
):
2160
2160
base_str , override_str = format_type_distinctly (
2161
2161
original_type , typ , options = self .options
@@ -2166,8 +2166,7 @@ def check_method_override_for_base_with_name(
2166
2166
)
2167
2167
self .fail (msg , context )
2168
2168
elif isinstance (original_type , UnionType ) and any (
2169
- is_subtype (typ , orig_typ , ignore_pos_arg_names = True )
2170
- for orig_typ in original_type .items
2169
+ is_subtype (typ , orig_typ ) for orig_typ in original_type .items
2171
2170
):
2172
2171
# This method is a subtype of at least one union variant.
2173
2172
if (
@@ -2293,7 +2292,7 @@ def check_override(
2293
2292
# Use boolean variable to clarify code.
2294
2293
fail = False
2295
2294
op_method_wider_note = False
2296
- if not is_subtype (override , original , ignore_pos_arg_names = True ):
2295
+ if not is_subtype (override , original ):
2297
2296
fail = True
2298
2297
elif isinstance (override , Overloaded ) and self .is_forward_op_method (name ):
2299
2298
# Operator method overrides cannot extend the domain, as
0 commit comments