-
-
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
The disable declaration directives does not take effect when f-string exists #2449
Closed
jubel-han opened this issue
Aug 29, 2018
· 2 comments
· Fixed by rhaamo/ahrl#53, dcollinsn/judgeapps-dependencies#84, python-trio/trio#789, Chromadream/instiz#5 or rkpop/twitter-bot#8
Closed
The disable declaration directives does not take effect when f-string exists #2449
jubel-han opened this issue
Aug 29, 2018
· 2 comments
· Fixed by rhaamo/ahrl#53, dcollinsn/judgeapps-dependencies#84, python-trio/trio#789, Chromadream/instiz#5 or rkpop/twitter-bot#8
Labels
Milestone
Comments
jubel-han
changed the title
The disable declaration directives does not effect when f-string exists
The disable declaration directives does not take effect when f-string exists
Aug 29, 2018
Hey, thanks for creating an issue! I can definitely reproduce this bug. |
This should be fixed with the latest astroid's master, please give it a go and let us know if it works for you. |
This was referenced Nov 26, 2018
This was referenced Dec 20, 2018
This was referenced Feb 12, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
pylint
with version<2.0.0
in docker containerpython:3.6.4
pylint
against the test fileEverything is expected since that we disabled them.
pylint
with version>=2.0.0
and inspect the installed versionspylint
against the test file again.From the above, we can see the disable directives didn't take effect.
Current behavior
The
disable
declaration does not take effects if the object's attribute invoked in thef-string
as well as an extra line exists at below of the f-string one.e.g.:
Expected behavior
The
disable
declaration take effects no matter the above condition exists or not.pylint --version output
appears at the above reproduce steps.
The text was updated successfully, but these errors were encountered: