Skip to content

stub missing for multiprocessing.Value.get_lock() #2917

@philsc

Description

@philsc

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:

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions