Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pylint incorrectly warns about threading.Lock.locked #2791

Closed
vlovich opened this issue Mar 5, 2019 · 0 comments
Closed

pylint incorrectly warns about threading.Lock.locked #2791

vlovich opened this issue Mar 5, 2019 · 0 comments

Comments

@vlovich
Copy link

vlovich commented Mar 5, 2019

Steps to reproduce

  1. test.py
import threading
l = threading.Lock()
l.locked()
  1. pylint -E test.py

Current behavior

************* Module test
test.py:3:0: E1101: Instance of 'lock' has no 'locked' member (no-member)

Expected behavior

Shouldn't error because Lock is defined to have a locked() function.

pylint --version output

pylint 2.3.1
astroid 2.2.3
Python 3.7.2 (default, Feb 13 2019, 15:31:10)
[Clang 10.0.0 (clang-1000.11.45.5)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant