Skip to content

Commit 9eb9198

Browse files
committed
Fix typing
1 parent 20e17ee commit 9eb9198

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

mypy/fastparse.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,15 +1320,12 @@ def visit(self, node: ast3.expr) -> ProperType: ...
13201320
def visit(self, node: Optional[AST]) -> Optional[ProperType]: ...
13211321

13221322
@overload
1323-
def visit(self, node: ast3.expr,
1324-
is_type_comment: Optional[bool]) -> ProperType: ...
1323+
def visit(self, node: ast3.expr, is_type_comment: bool) -> ProperType: ...
13251324

13261325
@overload
1327-
def visit(self, node: Optional[AST],
1328-
is_type_comment: Optional[bool]) -> Optional[ProperType]: ...
1326+
def visit(self, node: Optional[AST], is_type_comment: bool) -> Optional[ProperType]: ...
13291327

1330-
def visit(self, node: Optional[AST],
1331-
is_type_comment: Optional[bool] = False) -> Optional[ProperType]:
1328+
def visit(self, node: Optional[AST], is_type_comment: bool = False) -> Optional[ProperType]:
13321329
"""Modified visit -- keep track of the stack of nodes"""
13331330
if node is None:
13341331
return None

0 commit comments

Comments
 (0)