mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Fix type stubs in events.pyi (#1256)
This commit is contained in:
committed by
Matthias Kramm
parent
9311e980f4
commit
595e601882
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user