Skip to content

Commit

Permalink
adds threading related members to queue.pyi (#3198)
Browse files Browse the repository at this point in the history
  • Loading branch information
mchlnix authored and srittau committed Aug 19, 2019
1 parent e252094 commit 1ab5145
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions stdlib/3/queue.pyi
Expand Up @@ -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

Expand All @@ -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: ...
Expand Down

0 comments on commit 1ab5145

Please sign in to comment.