-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
\ (line continuation) not respected for pragmas #199
Comments
Original comment by Sylvain Thénault (BitBucket: sthenault, GitHub: @sthenault?): Removing version: 1.1 (automated comment) |
It would be nice to have this fixed. An alternative might be a pylint comment that applies only to the next line (so that you could put it right before the line in question). |
I'd love that! I often want a |
In this case, it's not trivial to put a # pylint: disable=invalid-name at the end of the line, because it's a multiline statement, and this bug exists in Pylint: pylint-dev/pylint#199
Originally reported by: the mulhern (BitBucket: the_mulhern)
In the following code, the disable pragma is respected and no error is reported.
But in this code the disable pragma is not respected and the error is reported.
In the first case, the code is broken by the "" but in the second the code is separated from the pragma by the slash. I believe that the pragma should be considered to be on the same line as the code in both cases, so neither should have an error.
The text was updated successfully, but these errors were encountered: