-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
As per the documentation [1] I see the get_lock() method should be available.
However, when I run pytype, I get the following error:
File "/foo/bar/file.py", line 308, in wait_for_processes: No attribute 'get_lock' on multiprocessing.Value [attribute-error]
In multiprocessing.Value
Called from (traceback):
line 376, in current file
line 350, in main
Sure enough, the stub file doesn't list the method at all:
typeshed/stdlib/3/multiprocessing/__init__.pyi
Lines 69 to 71 in 4230e6f
class Value(): | |
value: Any = ... | |
def __init__(self, typecode_or_type: str, *args: Any, lock: bool = ...) -> None: ... |
[1] https://docs.python.org/3.7/library/multiprocessing.html?highlight=process#multiprocessing.Value
Metadata
Metadata
Assignees
Labels
No labels