mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 02:41:16 +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.
|
||||
|
||||
Reference in New Issue
Block a user