Skip to content

Commit d4da7cb

Browse files
committed
Small recfactoring to remove the implementation signature fallback to pass mypy_primer
1 parent b7d2b18 commit d4da7cb

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

mypy/checker.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2501,10 +2501,6 @@ def check_override(
25012501
if not self.is_forward_op_method(name):
25022502
if all(is_subtype(item.ret_type, original.ret_type) for item in override.items):
25032503
return True
2504-
if isinstance(node, OverloadedFuncDef) and node.impl and node.impl.type:
2505-
impl_type = node.impl.type
2506-
if is_subtype(impl_type, original, ignore_pos_arg_names=True):
2507-
return True
25082504

25092505
if not is_subtype(override, original, ignore_pos_arg_names=True):
25102506
fail = True

0 commit comments

Comments
 (0)