massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / multiprocessing / dummy / __init__.pyi
1 import array
2 import threading
3 import weakref
4 from queue import Queue as Queue
5 from typing import Any, Callable, Iterable, Mapping, Sequence
6
7 JoinableQueue = Queue
8 Barrier = threading.Barrier
9 BoundedSemaphore = threading.BoundedSemaphore
10 Condition = threading.Condition
11 Event = threading.Event
12 Lock = threading.Lock
13 RLock = threading.RLock
14 Semaphore = threading.Semaphore
15
16 class DummyProcess(threading.Thread):
17     _children: weakref.WeakKeyDictionary[Any, Any]
18     _parent: threading.Thread
19     _pid: None
20     _start_called: int
21     exitcode: int | None
22     def __init__(
23         self,
24         group: Any = ...,
25         target: Callable[..., Any] | None = ...,
26         name: str | None = ...,
27         args: Iterable[Any] = ...,
28         kwargs: Mapping[str, Any] = ...,
29     ) -> None: ...
30
31 Process = DummyProcess
32
33 class Namespace:
34     def __init__(self, **kwds: Any) -> None: ...
35     def __getattr__(self, __name: str) -> Any: ...
36     def __setattr__(self, __name: str, __value: Any) -> None: ...
37
38 class Value:
39     _typecode: Any
40     _value: Any
41     value: Any
42     def __init__(self, typecode: Any, value: Any, lock: Any = ...) -> None: ...
43
44 def Array(typecode: Any, sequence: Sequence[Any], lock: Any = ...) -> array.array[Any]: ...
45 def Manager() -> Any: ...
46 def Pool(processes: int | None = ..., initializer: Callable[..., Any] | None = ..., initargs: Iterable[Any] = ...) -> Any: ...
47 def active_children() -> list[Any]: ...
48 def current_process() -> threading.Thread: ...
49 def freeze_support() -> None: ...
50 def shutdown() -> None: ...