Modules not being publically exported (Pyright)
Describe the bug
Pyright will throw an error about imports not being publically exported.
To Reproduce Steps to reproduce the behavior:
- Generate an client
- Import a module from the client
from test_client.models import test Pyrightwill throw an error"test" is not exported from module "test_client.models"
Expected behavior
All public exports should be exported with a redudant alias.
from .feature import Feature should be from .feature import Feature as Feature
Additional context
Pyright will check imports in specific ways, which can be found here https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#library-interface.
Can also be fixed in the way issue https://github.com/openapi-generators/openapi-python-client/issues/540 suggested.
I think this is a duplicate of
- #540
But it's good to know that it's not just a mypy issue but also affects Pyright.
Edit: I see you also linked to #540. :)
#676 fixes this 🥳