mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-03 16:33:49 +08:00
Fix type stubs in events.pyi (#1256)
This commit is contained in:
1 parent
9311e980f4
commit
595e601882
1 file changed
+2
-2
@@ -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