Use lowercase set/deque in stdlib subdirectories (#6350)

This commit is contained in:
Alex Waygood
2021-11-20 12:20:25 +00:00
committed by GitHub
parent 5c8e68f0eb
commit 029cf555e7
11 changed files with 44 additions and 42 deletions

View File

@@ -1,6 +1,7 @@
import sys
from collections import deque
from types import TracebackType
from typing import Any, Awaitable, Callable, Deque, Generator, Type, TypeVar
from typing import Any, Awaitable, Callable, Generator, Type, TypeVar
from .events import AbstractEventLoop
from .futures import Future
@@ -57,7 +58,7 @@ class Condition(_ContextManagerMixin):
class Semaphore(_ContextManagerMixin):
_value: int
_waiters: Deque[Future[Any]]
_waiters: deque[Future[Any]]
def __init__(self, value: int = ..., *, loop: AbstractEventLoop | None = ...) -> None: ...
def locked(self) -> bool: ...
async def acquire(self) -> bool: ...