Replies: 1 comment 8 replies
-
My initial though was that this would work in the from .childpackage import grandchildpackage as grandchildpackage But that only seems to work for symbols, not modules. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suppose I had a package defined like so:
And I wanted a user to be able to do something like so:
Now there is a way to get this to work in the runtime (as explained here). I add the
childpackage
path to__path__
in the__init__.py
. Like so:But is there a way to model this behavior so that Pyright can understand it?
How do I eliminate this error:
I bring this up because of this issue in Keras:
keras-team/keras#19779
Beta Was this translation helpful? Give feedback.
All reactions