-
-
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
Implicit namespace package is not linted if it is inside a regular package #3944
Comments
Python may be able to cope with the absence of [1] The Python tutorial says the file is required, though:
|
Nope, that is intended and conforms to namespace package definition. I named that sub-package
PEP420 has clarifications on this matter, though:
|
Thanks for the links, I did not know about namespace packages. I'll go back studying the subject and let others chime in. :) |
I'm not finding anything in PEP420 that forbids this, but isn't it kind of moot for I'm asking this, because I was just wondering about this myself ... |
I'd admit that the second example is made-up, kind of "what if" experiment. And in real world situations it probably doesn't have a lot of sense. |
As a note to self, this will not be fixed with #6405 and requires further investigation. |
Steps to reproduce
show_warning = True
(or something similar) into.py
files just to get some warnings.package_with_namespace
,package_with_namespace.namespace
andpackage_with_namespace.namespace.module
namespace
Current behavior
Expected behavior
Output from
pylint package_with_namespace
andpylint package_with_namespace.namespace
should contain output frompylint package_with_namespace.namespace.module
just like withpylint namespace
.pylint --version output
The text was updated successfully, but these errors were encountered: