mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-08 20:43:25 +08:00
Fixing flake8 E231 errors
This commit is contained in:
@@ -58,7 +58,7 @@ class AbstractEventLoop(metaclass=ABCMeta):
|
||||
def call_soon_threadsafe(self, callback: Callable[..., Any], *args: Any) -> Handle: ...
|
||||
@abstractmethod
|
||||
def run_in_executor(self, executor: Any,
|
||||
callback: Callable[[],Any], *args: Any) -> Future[Any]: ...
|
||||
callback: Callable[[], Any], *args: Any) -> Future[Any]: ...
|
||||
@abstractmethod
|
||||
def set_default_executor(self, executor: Any) -> None: ...
|
||||
# Network I/O methods returning Futures.
|
||||
@@ -118,11 +118,11 @@ class AbstractEventLoop(metaclass=ABCMeta):
|
||||
#?? check Any
|
||||
# return (Transport, Protocol)
|
||||
@abstractmethod
|
||||
def add_reader(self, fd: int, callback: Callable[[],Any], *args: List[Any]) -> None: ...
|
||||
def add_reader(self, fd: int, callback: Callable[[], Any], *args: List[Any]) -> None: ...
|
||||
@abstractmethod
|
||||
def remove_reader(self, fd: int) -> None: ...
|
||||
@abstractmethod
|
||||
def add_writer(self, fd: int, callback: Callable[[],Any], *args: List[Any]) -> None: ...
|
||||
def add_writer(self, fd: int, callback: Callable[[], Any], *args: List[Any]) -> None: ...
|
||||
@abstractmethod
|
||||
def remove_writer(self, fd: int) -> None: ...
|
||||
# Completion based I/O methods returning Futures.
|
||||
@@ -136,7 +136,7 @@ class AbstractEventLoop(metaclass=ABCMeta):
|
||||
def sock_accept(self, sock: Any) -> Any: ...
|
||||
# Signal handling.
|
||||
@abstractmethod
|
||||
def add_signal_handler(self, sig: int, callback: Callable[[],Any], *args: List[Any]) -> None: ...
|
||||
def add_signal_handler(self, sig: int, callback: Callable[[], Any], *args: List[Any]) -> None: ...
|
||||
@abstractmethod
|
||||
def remove_signal_handler(self, sig: int) -> None: ...
|
||||
# Error handlers.
|
||||
|
||||
@@ -20,7 +20,7 @@ class PurePath(_PurePathBase):
|
||||
suffix = ... # type: str
|
||||
suffixes = ... # type: List[str]
|
||||
stem = ... # type: str
|
||||
if sys.version_info < (3,5):
|
||||
if sys.version_info < (3, 5):
|
||||
def __init__(self, *pathsegments: str) -> None: ...
|
||||
else:
|
||||
def __new__(cls: Type[_P], *args: Union[str, PurePath]) -> _P: ...
|
||||
|
||||
Reference in New Issue
Block a user