Skip to content
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 (INP001) - false negative when package contains no source files but contains nested packages #10783

Closed
DetachHead opened this issue Apr 5, 2024 · 1 comment
Labels
rule Implementing or modifying a lint rule

Comments

@DetachHead
Copy link

if i have the following folder structure:

.
└── foo/
    └── bar/
        ├── baz.py
        └── __init__.py

i get no error in baz.py because there's an __init__.py file in the bar package, but there should be an error that the bar package does not have an __init__.py.

the correct structure is:

.
└── foo/
    ├── bar/
    │   ├── baz.py
    │   └── __init__.py
    └── __init__.py
@MichaReiser MichaReiser added the rule Implementing or modifying a lint rule label Apr 5, 2024
@DetachHead
Copy link
Author

looks like this was fixed in #14236

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule Implementing or modifying a lint rule
Projects
None yet
Development

No branches or pull requests

2 participants