Closed
Description
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
Pyright
will 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 #540 suggested.