mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-03 14:38:28 +08:00
fix: add eager_start as an argument. (#15211)
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
This commit is contained in:
co-authored by
Semyon Moroz
parent
645c7d2d41
commit
2245b8bc64
@@ -161,7 +161,17 @@ class AbstractEventLoop:
|
||||
@abstractmethod
|
||||
def create_future(self) -> Future[Any]: ...
|
||||
# Tasks methods
|
||||
if sys.version_info >= (3, 11):
|
||||
if sys.version_info >= (3, 14):
|
||||
@abstractmethod
|
||||
def create_task(
|
||||
self,
|
||||
coro: _CoroutineLike[_T],
|
||||
*,
|
||||
name: str | None = None,
|
||||
context: Context | None = None,
|
||||
eager_start: bool | None = None,
|
||||
) -> Task[_T]: ...
|
||||
elif sys.version_info >= (3, 11):
|
||||
@abstractmethod
|
||||
def create_task(
|
||||
self, coro: _CoroutineLike[_T], *, name: str | None = None, context: Context | None = None
|
||||
|
||||
Reference in New Issue
Block a user