adds threading related members to queue.pyi (#3198)

This commit is contained in:
Michael Nix
2019-08-19 18:33:19 +02:00
committed by Sebastian Rittau
parent e252094354
commit 1ab5145124

View File

@@ -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: ...