Various asyncio classes: remove the loop argument on 3.10 (#9630)

This commit is contained in:
Alex Waygood
2023-01-31 00:55:08 +00:00
committed by GitHub
parent 94065d3aa5
commit 8a098a8601
3 changed files with 26 additions and 10 deletions

View File

@@ -13,10 +13,10 @@ class QueueFull(Exception): ...
_T = TypeVar("_T")
class Queue(Generic[_T]):
if sys.version_info >= (3, 11):
if sys.version_info >= (3, 10):
def __init__(self, maxsize: int = 0) -> None: ...
else:
def __init__(self, maxsize: int = 0, *, loop: AbstractEventLoop | None = ...) -> None: ...
def __init__(self, maxsize: int = 0, *, loop: AbstractEventLoop | None = None) -> None: ...
def _init(self, maxsize: int) -> None: ...
def _get(self) -> _T: ...