We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Client, APIException and HCloudException are not properly exported which makes pyright reportPrivateImportUsage.
Client
APIException
HCloudException
reportPrivateImportUsage
$ grep "from hcloud" cf_ips_to_hcloud_fw/__main__.py from hcloud import APIException, Client from hcloud.firewalls.domain import Firewall, FirewallRule $ venv/bin/pyright --venvpath . cf-ips-to-hcloud-fw/cf_ips_to_hcloud_fw/__main__.py cf-ips-to-hcloud-fw/cf_ips_to_hcloud_fw/__main__.py:9:20 - error: "APIException" is not exported from module "hcloud" Import from "hcloud._exceptions" instead (reportPrivateImportUsage) cf-ips-to-hcloud-fw/cf_ips_to_hcloud_fw/__main__.py:9:34 - error: "Client" is not exported from module "hcloud" Import from "hcloud._client" instead (reportPrivateImportUsage) 2 errors, 0 warnings, 0 informations
Environment
Possible Solution
Either include them in an __all__ list or export them with a redundant aliased import. (See https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#library-interface)
__all__
The text was updated successfully, but these errors were encountered:
fix: private object not exported in top level module (#346)
5281b05
Fixes #345 --------- Signed-off-by: Jürgen Kreileder <[email protected]>
Successfully merging a pull request may close this issue.
Bug Report
Client
,APIException
andHCloudException
are not properly exported which makes pyrightreportPrivateImportUsage
.Environment
Possible Solution
Either include them in an
__all__
list or export them with a redundant aliased import.(See https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#library-interface)
The text was updated successfully, but these errors were encountered: