mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Enable --disallow-any-generics for stubs (#3288)
This commit is contained in:
committed by
Jelle Zijlstra
parent
23b353303b
commit
c32e1e2280
@@ -2,9 +2,8 @@
|
||||
|
||||
# NOTE: These are incomplete!
|
||||
|
||||
from collections import deque
|
||||
from threading import Condition, Lock
|
||||
from typing import Any, TypeVar, Generic, Optional
|
||||
from typing import Any, Deque, TypeVar, Generic, Optional
|
||||
import sys
|
||||
|
||||
_T = TypeVar('_T')
|
||||
@@ -21,7 +20,7 @@ class Queue(Generic[_T]):
|
||||
all_tasks_done: Condition # undocumented
|
||||
unfinished_tasks: int # undocumented
|
||||
|
||||
queue: deque # undocumented
|
||||
queue: Deque[Any] # undocumented
|
||||
def __init__(self, maxsize: int = ...) -> None: ...
|
||||
def _init(self, maxsize: int) -> None: ...
|
||||
def empty(self) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user