Fix type stubs in events.pyi (#1256)

This commit is contained in:
Sebastian Meßmer
2017-05-09 01:24:25 +02:00
committed by Matthias Kramm
parent 9311e980f4
commit 595e601882

View File

@@ -194,7 +194,7 @@ class AbstractEventLoopPolicy(metaclass=ABCMeta):
@abstractmethod
def get_event_loop(self) -> AbstractEventLoop: ...
@abstractmethod
def set_event_loop(self, loop: AbstractEventLoop): ...
def set_event_loop(self, loop: AbstractEventLoop) -> None: ...
@abstractmethod
def new_event_loop(self) -> AbstractEventLoop: ...
# Child processes handling (Unix only).
@@ -206,7 +206,7 @@ class AbstractEventLoopPolicy(metaclass=ABCMeta):
class BaseDefaultEventLoopPolicy(AbstractEventLoopPolicy):
def __init__(self) -> None: ...
def get_event_loop(self) -> AbstractEventLoop: ...
def set_event_loop(self, loop: AbstractEventLoop): ...
def set_event_loop(self, loop: AbstractEventLoop) -> None: ...
def new_event_loop(self) -> AbstractEventLoop: ...
def get_event_loop_policy() -> AbstractEventLoopPolicy: ...