Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion stdlib/asyncio/locks.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ else:
) -> None: ...

class Lock(_ContextManagerMixin, _LoopBoundMixin):
_waiters: deque[Future[Any]] | None
if sys.version_info >= (3, 10):
def __init__(self) -> None: ...
else:
Expand All @@ -57,6 +58,7 @@ class Lock(_ContextManagerMixin, _LoopBoundMixin):
def release(self) -> None: ...

class Event(_LoopBoundMixin):
_waiters: deque[Future[Any]]
if sys.version_info >= (3, 10):
def __init__(self) -> None: ...
else:
Expand All @@ -68,6 +70,7 @@ class Event(_LoopBoundMixin):
async def wait(self) -> Literal[True]: ...

class Condition(_ContextManagerMixin, _LoopBoundMixin):
_waiters: deque[Future[Any]]
if sys.version_info >= (3, 10):
def __init__(self, lock: Lock | None = None) -> None: ...
else:
Expand All @@ -83,7 +86,7 @@ class Condition(_ContextManagerMixin, _LoopBoundMixin):

class Semaphore(_ContextManagerMixin, _LoopBoundMixin):
_value: int
_waiters: deque[Future[Any]]
_waiters: deque[Future[Any]] | None
if sys.version_info >= (3, 10):
def __init__(self, value: int = 1) -> None: ...
else:
Expand Down