mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
adds threading related members to queue.pyi (#3198)
This commit is contained in:
committed by
Sebastian Rittau
parent
e252094354
commit
1ab5145124
@@ -3,6 +3,7 @@
|
||||
# NOTE: These are incomplete!
|
||||
|
||||
from collections import deque
|
||||
from threading import Condition, Lock
|
||||
from typing import Any, TypeVar, Generic, Optional
|
||||
import sys
|
||||
|
||||
@@ -13,6 +14,13 @@ class Full(Exception): ...
|
||||
|
||||
class Queue(Generic[_T]):
|
||||
maxsize: int
|
||||
|
||||
mutex: Lock # undocumented
|
||||
not_empty: Condition # undocumented
|
||||
not_full: Condition # undocumented
|
||||
all_tasks_done: Condition # undocumented
|
||||
unfinished_tasks: int # undocumented
|
||||
|
||||
queue: deque # undocumented
|
||||
def __init__(self, maxsize: int = ...) -> None: ...
|
||||
def _init(self, maxsize: int) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user