mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Mark asyncio.Runner as final (#9353)
As per 71b032635d/Lib/asyncio/runners.py (L47)
This commit is contained in:
@@ -3,6 +3,7 @@ from _typeshed import Self
|
||||
from collections.abc import Callable, Coroutine
|
||||
from contextvars import Context
|
||||
from typing import Any, TypeVar
|
||||
from typing_extensions import final
|
||||
|
||||
from .events import AbstractEventLoop
|
||||
|
||||
@@ -13,6 +14,7 @@ else:
|
||||
_T = TypeVar("_T")
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
@final
|
||||
class Runner:
|
||||
def __init__(self, *, debug: bool | None = ..., loop_factory: Callable[[], AbstractEventLoop] | None = ...) -> None: ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
|
||||
Reference in New Issue
Block a user