We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
reportPrivateImportUsage
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug In vscode, current templates will cause pylance to raises the reportPrivateImportUsage.
To Reproduce
try.py
from the_client import AuthenticatedClient from the_client.api.the_tag import get_stuff from the_client.models import Stuff
pylance message:
"AuthenticatedClient" is not exported from module "the_client" Import from "the_client.client" instead
"Stuff" is not exported from module "the_client.models" Import from "the_client.models.stuff" instead`
Expected behavior The class should be imported without any error message. It can be fixed by adding __all__ symbol to solve this issue. ref: https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#library-interface
__all__
OpenAPI Spec File Not related to OpenAPI spec.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Relates to #631 & #540 I think
Sorry, something went wrong.
feat: Include __all__ in generated __init__.py files [#676, #631, #…
__init__.py
9cea5af
…540, #675]. Thanks @EltonChou! Closes #676, #631, #540, #675
Successfully merging a pull request may close this issue.
Describe the bug
In vscode,
current templates will cause pylance to raises the
reportPrivateImportUsage
.To Reproduce
try.py
pylance message:
Expected behavior
The class should be imported without any error message.
It can be fixed by adding
__all__
symbol to solve this issue.ref: https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#library-interface
OpenAPI Spec File
Not related to OpenAPI spec.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: