pylint this file:
from multiprocessing import Manager
with Manager() as m:
m.Lock()
testing.py:4: [E1101(no-member), ] Instance of 'SyncManager' has no 'Lock' member; maybe 'RLock'?
It shouldn't give an error.
pylint --version
pylint 2.4.4
astroid 2.3.3
Python 3.7.4 (default, Jul 9 2019, 18:15:00)
[Clang 10.0.0 (clang-1000.11.45.5)]
Most of the attributes on a SyncManager are added via a register() method (https://github.com/python/cpython/blob/v3.8.0/Lib/multiprocessing/managers.py#L1222-L1241). We'll have to add something to the astroid brain to make it understand these.
Hi, I am another user and still receiving these errors
Most helpful comment
Most of the attributes on a SyncManager are added via a
register()method (https://github.com/python/cpython/blob/v3.8.0/Lib/multiprocessing/managers.py#L1222-L1241). We'll have to add something to the astroid brain to make it understand these.