mypy: Add explicit Optional for default=None parameters in various files.

This commit is contained in:
neiljp (Neil Pilgrim)
2018-03-23 22:42:54 +00:00
committed by Tim Abbott
parent 9a90c225a6
commit 090b47ed19
13 changed files with 21 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
from typing import Callable, List, Tuple, Union
from typing import Callable, List, Tuple, Union, Optional
####### Helpers
@@ -50,7 +50,7 @@ def get_whitespace(tokens, i, end):
return i, text
def get_whitespace_and_comments(tokens, i, end, line=None):
# type: (List[Token], int, int, int) -> Tuple[int, str]
# type: (List[Token], int, int, Optional[int]) -> Tuple[int, str]
def is_fluff_token(token):
# type: (Token) -> bool