-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrong
Description
# foo.py
class Foo:
...
# bar.py
from foo import Foo
# baz.py
from bar import Foo # Module "bar" does not explicitly export attribute "Foo"; implicit reexport disabled [attr-defined]
reveal_type(Foo) # Revealed type is "Any"
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
DetachHead and KotlinIsland
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrong