Skip to content

Require keywords for some auxiliary parameters #3046

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 2 commits into from
Apr 25, 2025

Conversation

mwaskom
Copy link
Contributor

@mwaskom mwaskom commented Apr 21, 2025

Describe your changes

⚠️ Needs some integration test updates before this can be merged. https://github.com/modal-labs/modal/pull/21900

  • Closes CLI-310

Changelog

  • Marked some parameters in a small number of Modal functions as requiring keyword arguments (namely, modal.App.run, modal.Cls.with_options, all .from_name methods, and a few others). Code that calls these functions with positional arguments will now raise an error. This is expected to be minimally disruptive as the affected parameters are mostly "extra" options or positioned after parameters that have previously been deprecated.

@mwaskom mwaskom requested a review from freider April 23, 2025 14:54
@mwaskom
Copy link
Contributor Author

mwaskom commented Apr 25, 2025

@prbot approve

Copy link

@modal-pr-review-automation modal-pr-review-automation bot left a comment

Choose a reason for hiding this comment

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

Approved 👍. @freider will follow-up review this.

@mwaskom mwaskom merged commit fdacdc6 into main Apr 25, 2025
26 checks passed
@mwaskom mwaskom deleted the michael/2025-04-21-require-kwargs branch April 25, 2025 14:24
Copy link
Contributor

@freider freider left a comment

Choose a reason for hiding this comment

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

:godmode:

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