Skip to content

Commit 3335f79

Browse files
committed
Bugfix 2
1 parent 4bcc85c commit 3335f79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/fastparse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ def fix_function_overloads(self, stmts: List[Statement]) -> List[Statement]:
461461
current_overload_name is not None
462462
and isinstance(stmt, IfStmt)
463463
and len(stmt.body[0].body) == 1
464-
and isinstance(stmt.else_body, Block)
465-
and len(stmt.else_body.body) == 0
464+
# and isinstance(stmt.else_body, Block)
465+
# and len(stmt.else_body.body) == 0
466466
and isinstance(
467467
stmt.body[0].body[0], (Decorator, FuncDef, OverloadedFuncDef))
468468
and stmt.body[0].body[0].name == current_overload_name

0 commit comments

Comments
 (0)