Skip to content

Commit 17e3591

Browse files
committed
Undo the abstract overload change
1 parent 3264e3e commit 17e3591

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mypy/semanal.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,12 +1461,8 @@ def handle_missing_overload_implementation(self, defn: OverloadedFuncDef) -> Non
14611461
item.func.abstract_status = IS_ABSTRACT
14621462
else:
14631463
item.abstract_status = IS_ABSTRACT
1464-
elif all(
1465-
isinstance(item, Decorator) and item.func.abstract_status == IS_ABSTRACT
1466-
for item in defn.items
1467-
):
1468-
pass
14691464
else:
1465+
# TODO: also allow omitting an implementation for abstract methods in ABCs?
14701466
self.fail(
14711467
"An overloaded function outside a stub file must have an implementation",
14721468
defn,

0 commit comments

Comments
 (0)