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 trigger false-positive no-member
error when using pathlib.Path
parents function
#5783
Labels
Duplicate 🐫
Duplicate of an already existing issue
False Positive 🦟
A message is emitted but nothing is wrong with the code
Comments
trym-b
added
the
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
label
Feb 9, 2022
DanielNoord
added
False Positive 🦟
A message is emitted but nothing is wrong with the code
and removed
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
labels
Feb 9, 2022
Interestingly this only happens with Python 3.10, not with Python 3.9. |
Same as #5832. You can resolve this particular error for now by doing: parent_path = current_path.resolve().parents[2] |
2 tasks
The-Compiler
added a commit
to qutebrowser/qutebrowser
that referenced
this issue
Mar 29, 2022
twigleingrid
pushed a commit
to twigleingrid/qutebrowser
that referenced
this issue
May 13, 2022
Thanks for reporting. Will close as a duplicate of #5832 (more discussion happened there). |
I'm getting the same issue with the following code: cwd = Path(__file__).resolve().parents[1]
apps_paths = cwd.glob('apps/*') On Python 10 as well. Is there an expected fix? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Duplicate 🐫
Duplicate of an already existing issue
False Positive 🦟
A message is emitted but nothing is wrong with the code
Bug description
Pylint finds a false-positive when running the code below:
When the code is run like this:
python /path/to/script/test.py
, this is the output:However, when I run pylint with the following options
pylint test.py --disable missing-module-docstring
then this is the output:Configuration
No response
Command used
Pylint output
Expected behavior
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
Pylint version
OS / Environment
Ubuntu 20.04
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: