-
Notifications
You must be signed in to change notification settings - Fork 5
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
Types not explicitly exported from package #118
Comments
If there is a solution to this that is not "Relist everything in all", I'll do it. Otherwise, I am going to follow other projects and declare this WONTFIX. |
Ruff has a similar lint, but I globally disable it. However, I don't see any evidence that such a targeted disable is available. It looks like MyPy+Parsita users putting in |
It looks like you can also signal the intention to re-export by from .state import (
Failure as Failure There is still duplication, but at least it's localized? |
One of the referenced projects, I agree this is not optimal and it would be nice if Mypy had a way to opt out of this feature only for a particular dependency, but turning off this check for an entire application also has other downsides in that you then can accidentally import things from the wrong location in your own codebase. |
Related Ruff request |
The following code:
Raises the following error from Mypy when run in
strict
mode:I believe this is because there is no
__all__
defined inThis also applies to other types re-exported from the base
parsita
package, such asParser
,Result
, etc.Environment
Related to
The text was updated successfully, but these errors were encountered: