How does pylance decide what is and isn't exported from a module? #3397
Answered
by
bschnurr
decorator-factory
asked this question in
Q&A
-
Source of from ._dock_view import DockView, Dock, DockEdge
from ._grid_view import GridView
from ._window_view import WindowView I think this is quite a common way of re-exporting stuff. Is it really required to also add an |
Beta Was this translation helpful? Give feedback.
Answered by
bschnurr
Sep 26, 2022
Replies: 1 comment 2 replies
-
see Can use |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
decorator-factory
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see
https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#library-interface
Can use
__all__
or redundant importfrom ._dock_view import DockView as DockView