Skip to content

Exports are considered private #68

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
Avasam opened this issue Nov 27, 2022 · 1 comment
Closed

Exports are considered private #68

Avasam opened this issue Nov 27, 2022 · 1 comment

Comments

@Avasam
Copy link
Contributor

Avasam commented Nov 27, 2022

The imports in __init__.py are considered private unless they are explicitly re-exported using the as keyword.
image

@cpburnz
Copy link
Owner

cpburnz commented Dec 6, 2022

@Avasam The top level private imports have been marked as belonging to the public interface using __all__. According to pyright's Typing Guidance for Python Libraries, adding the private imports to __all__ should satisfy Pylance/pyright.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants