fix some minor lint errors (#2820)

Caught by a newer version of flake8
This commit is contained in:
Jelle Zijlstra
2019-03-01 03:29:23 -08:00
committed by Sebastian Rittau
parent 3d638b0677
commit 14e387b6fd
2 changed files with 2 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ class FileIO(_RawIOBase, BytesIO):
mode = ... # type: str
closefd = ... # type: bool
def __init__(self, file: Union[str, int], mode: str = ..., closefd: bool = ...) -> None: ...
def readinto(self, buffer: _bytearray_like)-> int: ...
def readinto(self, buffer: _bytearray_like) -> int: ...
def write(self, pbuf: str) -> int: ...
class IncrementalNewlineDecoder(object):

View File

@@ -20,7 +20,7 @@ class BuiltinImporter(importlib.abc.MetaPathFinder,
def find_spec(cls, fullname: str,
path: Optional[Sequence[importlib.abc._Path]],
target: Optional[types.ModuleType] = ...) -> Optional[ModuleSpec]:
...
...
# InspectLoader
@classmethod
def is_package(cls, fullname: str) -> bool: ...