-
Notifications
You must be signed in to change notification settings - Fork 769
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
Unreachable code in python_completer.py #1672
Comments
thanks. what is reporting these errors? I'm surprised our flake8 isn't reporting them |
@puremourning If you're interested this is the pylama.ini I used / pylint disables for style issues
|
bstaletic
added a commit
to bstaletic/ycmd
that referenced
this issue
Oct 7, 2023
After combing through all the stuff pylint has found, this seems to me the useful part. The only questionable thing here, I think, could be the stuff related to `open()` and explicit encoding argument. This changes behaviour! Without specifying, the encoding is platform dependent. See https://docs.python.org/3/library/functions.html#open for details. Fixes ycm-core#1672
bstaletic
added a commit
to bstaletic/ycmd
that referenced
this issue
Oct 7, 2023
After combing through all the stuff pylint has found, this seems to me the useful part. The only questionable thing here, I think, could be the stuff related to `open()` and explicit encoding argument. This changes behaviour! Without specifying, the encoding is platform dependent. See https://docs.python.org/3/library/functions.html#open for details. Fixes ycm-core#1672
bstaletic
added a commit
to bstaletic/ycmd
that referenced
this issue
Oct 7, 2023
After combing through all the stuff pylint has found, this seems to me the useful part. The only questionable thing here, I think, could be the stuff related to `open()` and explicit encoding argument. This changes behaviour! Without specifying, the encoding is platform dependent. See https://docs.python.org/3/library/functions.html#open for details. Fixes ycm-core#1672
bstaletic
added a commit
to bstaletic/ycmd
that referenced
this issue
Sep 17, 2024
After combing through all the stuff pylint has found, this seems to me the useful part. The only questionable thing here, I think, could be the stuff related to `open()` and explicit encoding argument. This changes behaviour! Without specifying, the encoding is platform dependent. See https://docs.python.org/3/library/functions.html#open for details. Fixes ycm-core#1672
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The last commit to ycmd/completers/python/python_completer.py ( 9e6b32b ) introduced several warnings and caused LOGGER.error to become unreachable/dead code.
E1120 No value for argument 'start' in constructor call, 621:9
E1120 No value for argument 'end' in constructor call, 621:9
ycmd/ycmd/completers/python/python_completer.py
Lines 621 to 625 in f53e7ac
PLW0101 Unreachable code, 656:3
ycmd/ycmd/completers/python/python_completer.py
Lines 650 to 661 in f53e7ac
The text was updated successfully, but these errors were encountered: