mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 21:12:25 +08:00
Enable --disallow-any-generics for stubs (#3288)
This commit is contained in:
committed by
Jelle Zijlstra
parent
23b353303b
commit
c32e1e2280
@@ -14,7 +14,7 @@ from Queue import Queue
|
||||
|
||||
|
||||
class DummyProcess(threading.Thread):
|
||||
_children: weakref.WeakKeyDictionary
|
||||
_children: weakref.WeakKeyDictionary[Any, Any]
|
||||
_parent: threading.Thread
|
||||
_pid: None
|
||||
_start_called: bool
|
||||
@@ -42,10 +42,10 @@ class Value(object):
|
||||
|
||||
JoinableQueue = Queue
|
||||
|
||||
def Array(typecode, sequence, lock=...) -> array.array: ...
|
||||
def Array(typecode, sequence, lock=...) -> array.array[Any]: ...
|
||||
def Manager() -> Any: ...
|
||||
def Pool(processes=..., initializer=..., initargs=...) -> Any: ...
|
||||
def active_children() -> List: ...
|
||||
def active_children() -> List[Any]: ...
|
||||
def current_process() -> threading.Thread: ...
|
||||
def freeze_support() -> None: ...
|
||||
def shutdown() -> None: ...
|
||||
|
||||
@@ -15,7 +15,7 @@ class Connection(object):
|
||||
def poll(self, timeout=...) -> Any: ...
|
||||
|
||||
class Listener(object):
|
||||
_backlog_queue: Optional[Queue]
|
||||
_backlog_queue: Optional[Queue[Any]]
|
||||
address: Any
|
||||
def __init__(self, address=..., family=..., backlog=...) -> None: ...
|
||||
def accept(self) -> Connection: ...
|
||||
|
||||
Reference in New Issue
Block a user