-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
False positives (no-name-in-module) and (not-context-manager) #1542
Comments
not-context-manager can be easily tweaked by adding
|
Thanks @rogalski. Indeed we have applied your suggestion as workaround for the |
I ran into this issue today. Could you please make the solution more clear, like where can I Thanks! |
@zixia simply run |
@rogalski Thank you very much! |
For those also having this problem: I had to add the following in order to make it work:
(note the extra |
No name 'slim' in module 'LazyLoader' |
Given their use of |
Steps to reproduce
git clone https://github.com/ReDeiPirati/seq2seq.git && cd seq2seq
pylint -E seq2seq
[Optional] If you want to run a full coverage test pipeline:
pip install -e . && pip install nose pylint tox yapf mkdocs && tox
Current behavior
Same behavior for both python2.7 and python3.5
Similar: #613
not-context-manager
#1524 #1536no-name-in-module
.The not-context-manager error is a false positive because in the TensorFlow package(where the context-mager is coded) is actually well defined: look at tf_contextlib and tf_decorator.
Unfortunately i cannot explain why LazyLoader has triggered those errors, but the program works fine.
Expected behavior
No errors
pylint --version output
pylint with Python2
pylint with Python3
Thank you for you help and support :)
The text was updated successfully, but these errors were encountered: