Fixing flake8 E401, E402 errors

This commit is contained in:
Lukasz Langa
2016-12-20 00:41:22 -08:00
parent 147772950f
commit 6eb97964fd
25 changed files with 79 additions and 81 deletions

View File

@@ -1,10 +1,5 @@
from typing import Any, Union, Callable, TypeVar, List, Generic, Iterable, Generator, Awaitable
from .events import AbstractEventLoop
__all__ = ... # type: str
_T = TypeVar('_T')
from concurrent.futures._base import (
Error as Error,
)
@@ -12,6 +7,11 @@ from concurrent.futures import (
CancelledError as CancelledError,
TimeoutError as TimeoutError,
)
__all__ = ... # type: str
_T = TypeVar('_T')
class InvalidStateError(Error): ...
class _TracebackLogger:

View File

@@ -1,8 +1,8 @@
from asyncio import transports
from typing import AnyStr
__all__ = ... # type: str
from asyncio import transports
class BaseProtocol:
def connection_made(self, transport: transports.BaseTransport) -> None: ...

View File

@@ -1,10 +1,9 @@
from typing import TypeVar, Generic
__all__ = ... # type: str
from asyncio.events import AbstractEventLoop
from .coroutines import coroutine
from .futures import Future
from typing import TypeVar, Generic
__all__ = ... # type: str
class QueueEmpty(Exception): ...

View File

@@ -1,13 +1,14 @@
from typing import Any, Callable, Generator, Iterable, Tuple
ClientConnectedCallback = Callable[[Tuple[StreamReader, StreamWriter]], None]
import socket
from typing import Any, Callable, Generator, Iterable, Tuple
from . import coroutines
from . import events
from . import protocols
from . import transports
ClientConnectedCallback = Callable[[Tuple[StreamReader, StreamWriter]], None]
__all__ = ... # type: str
class IncompleteReadError(EOFError):

View File

@@ -1,13 +1,11 @@
from typing import Any, AnyStr, Tuple, Union
__all__ = ... # type: str
from asyncio import events
from asyncio import protocols
from asyncio import streams
from asyncio import transports
from asyncio.coroutines import coroutine
from typing import Any, AnyStr, Tuple, Union
__all__ = ... # type: str
PIPE = ... # type: int
STDOUT = ... # type: int

View File

@@ -2,12 +2,11 @@ from typing import (Any, TypeVar, Set, Dict, List, TextIO, Union, Tuple, Generic
Coroutine, Generator, Iterable, Awaitable, overload, Sequence, Iterator,
Optional)
import concurrent.futures
__all__ = ... # type: str
from .events import AbstractEventLoop
from .futures import Future
__all__ = ... # type: str
_T = TypeVar('_T')
FIRST_EXCEPTION = 'FIRST_EXCEPTION'