.pyi stub files ignored if there's no corresponding .py file #10017
Labels
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
pyi
Message needs to become pyi-conscious
Bug description
pylint should honor
.pyi
files even if there's no corresponding.py
file (and even without--prefer-stubs
)My use-case is having a linting environment without building my compiled extension
.so
modules.(although it sounds similar, this is different from #9097, which is for linting the
.pyi
files — this is about using them to lint other files)Configuration
No response
Command used
Pylint output
Expected behavior
No error.
Workaround
If the
.py
exists and I pass--prefer-stubs y
then it does what I wantPylint version
pylint 3.2.6
astroid 3.2.4
Python 3.11.10 (main, Sep 26 2024, 17:38:01) [GCC 11.2.0]
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: