mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Add loop_factory argument to asyncio.run on 3.12+ (#9354)
This commit is contained in:
@@ -21,7 +21,12 @@ if sys.version_info >= (3, 11):
|
||||
def get_loop(self) -> AbstractEventLoop: ...
|
||||
def run(self, coro: Coroutine[Any, Any, _T], *, context: Context | None = ...) -> _T: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
if sys.version_info >= (3, 12):
|
||||
def run(
|
||||
main: Coroutine[Any, Any, _T], *, debug: bool | None = ..., loop_factory: Callable[[], AbstractEventLoop] | None = ...
|
||||
) -> _T: ...
|
||||
|
||||
elif sys.version_info >= (3, 8):
|
||||
def run(main: Coroutine[Any, Any, _T], *, debug: bool | None = ...) -> _T: ...
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user