mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Fixing flake8 E401, E402 errors
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user