We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In python, you can import from a module any symbol that defined for it.
from typing import collections
Let's forbid indirect imports, except facades.
We should allow import symbols:
__init__.py
Cases, when the facade isn't __init__.py, are rare (do you have examples?).
import something
Moved from #1092 (comment)
The text was updated successfully, but these errors were encountered:
This is covered by mypy: see implicit_reexport from https://mypy.readthedocs.io/en/stable/config_file.html
mypy
implicit_reexport
We cannot handle this violation, because we cannot know what's behind import something Since we do not resolve packages.
Sorry, something went wrong.
No branches or pull requests
Rule request
Thesis
In python, you can import from a module any symbol that defined for it.
Let's forbid indirect imports, except facades.
Implementation
We should allow import symbols:
__init__.py
(facade).Cases, when the facade isn't
__init__.py
, are rare (do you have examples?).Reasoning
import something
from a module that imported it for internal usage, and suddenly something else is broken.Moved from #1092 (comment)
The text was updated successfully, but these errors were encountered: