mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 16:14:24 +08:00
Fixing flake8 E121, E122, E123, E124, E125, E126 errors
This commit is contained in:
@@ -85,11 +85,13 @@ class FileIO(RawIOBase):
|
||||
mode = ... # type: str
|
||||
name = ... # type: Union[int, str]
|
||||
if sys.version_info >= (3, 3):
|
||||
def __init__(self, name: Union[str, bytes, int], mode: str = ...,
|
||||
closefd: bool = ...,
|
||||
opener: Optional[
|
||||
Callable[[Union[int, str], str], int]] = ...) \
|
||||
-> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
name: Union[str, bytes, int],
|
||||
mode: str = ...,
|
||||
closefd: bool = ...,
|
||||
opener: Optional[Callable[[Union[int, str], str], int]] = ...
|
||||
) -> None: ...
|
||||
else:
|
||||
def __init__(self, name: Union[str, bytes, int],
|
||||
mode: str = ..., closefd: bool = ...) -> None: ...
|
||||
@@ -198,10 +200,15 @@ class TextIOWrapper(TextIO):
|
||||
# encoding: str = ..., errors: Optional[str] = ...,
|
||||
# newline: Optional[str] = ..., line_buffering: bool = ...) \
|
||||
# -> None: ...
|
||||
def __init__(self, buffer: IO[bytes], encoding: str = ...,
|
||||
errors: Optional[str] = ..., newline: Optional[str] = ...,
|
||||
line_buffering: bool = ..., write_through: bool = ...) \
|
||||
-> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
buffer: IO[bytes],
|
||||
encoding: str = ...,
|
||||
errors: Optional[str] = ...,
|
||||
newline: Optional[str] = ...,
|
||||
line_buffering: bool = ...,
|
||||
write_through: bool = ...
|
||||
) -> None: ...
|
||||
# copied from IOBase
|
||||
def __exit__(self, t: type = None, value: BaseException = None,
|
||||
traceback: Any = None) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user