-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
no-implicit-reexport
resolves implicit re-exports as Any
#12749
Comments
As a workaround you could apply an override to the mypy config: [[tool.mypy.overrides]]
module = "thepackage.*"
implicit_reexport = true |
Just to be clear - are you expecting mypy to give the error ( Also, in your examples the files are all .py files - are there stubs for the external libraries? If so, can you change the stubs to have explicit re-exports? |
yes
the library i'm using has types defined in its |
using |
mypy should still resolve the import like it does when
no-implicit-reexport
is disabled.in my case, i'm trying to use a library that imports its own classes using implicit re-exports, which results in pretty much everything being treated as
Any
in my project#12749 (comment)
The text was updated successfully, but these errors were encountered: