Skip to content
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

Export modal.FunctionCall at the top level for FunctionCall.from_id() #2870

Merged
merged 2 commits into from
Feb 13, 2025

Conversation

freider
Copy link
Contributor

@freider freider commented Feb 13, 2025

Noticed this was missing in the package level exports, but feels like it should be there since we have some public uses of this API in our examples

Changelog

  • modal.FunctionCall is now available in the top-level modal namespace. We recommend referencing the class this way instead of using the the fully-qualified modal.functions.FunctionCall name.

@freider freider requested a review from mwaskom February 13, 2025 10:15
Copy link
Contributor

@mwaskom mwaskom left a comment

Choose a reason for hiding this comment

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

Yep I agree with this. Can we update docs / example usage? I see a reference to the fully-qualified name in the spawn / _experimental_spawn docstrings.

@freider freider merged commit 65ca596 into main Feb 13, 2025
24 checks passed
@freider freider deleted the freider/export_function_call branch February 13, 2025 16:49
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