Skip to content

Export Public API via __all__ in __init__.py #49

New issue

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

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

ouatu-ro
Copy link
Contributor

@ouatu-ro ouatu-ro commented Mar 14, 2025

Added an explicit __all__ list to __init__.py to export key symbols (e.g., WorkflowContext).

This resolves Pylint/Pylance and docs import warnings where examples like from restate import WorkflowContext would otherwise trigger warnings.

@ouatu-ro ouatu-ro force-pushed the feature/explicit-export-app branch from b747812 to 7cd7166 Compare March 14, 2025 11:47
@ouatu-ro ouatu-ro force-pushed the feature/explicit-export-app branch from 7cd7166 to 3f78e14 Compare March 14, 2025 11:51
Copy link
Contributor

@igalshilman igalshilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ouatu-ro!

LGTM!

@igalshilman igalshilman merged commit eb79e39 into restatedev:main Mar 14, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants