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

Adds deprecation warning when trying to access method directly on class [CLI-302] #2755

Merged

Conversation

freider
Copy link
Contributor

@freider freider commented Jan 13, 2025

E.g.

MyClass.my_method.remote() should not work
but
MyClass().my_method.remote() should

This functionality is unintended and expected to be removed in 1.0

@freider freider requested a review from kramstrom January 13, 2025 08:40
@freider freider changed the title Adds deprecation warning when trying to access method directly on class Adds deprecation warning when trying to access method directly on class [CLI-302] Jan 13, 2025
@freider
Copy link
Contributor Author

freider commented Jan 13, 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 👍. @kramstrom will follow-up review this.

@freider
Copy link
Contributor Author

freider commented Jan 13, 2025

@prbot automerge

@modal-pr-review-automation
Copy link

Some required workflows are pending. Will automerge once they complete successfully.

@modal-pr-review-automation modal-pr-review-automation bot merged commit 45a4df9 into main Jan 13, 2025
23 checks passed
@modal-pr-review-automation modal-pr-review-automation bot deleted the freider/future-deprecation-method-on-cls branch January 13, 2025 09:14
Copy link
Contributor

@kramstrom kramstrom left a comment

Choose a reason for hiding this comment

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

👍

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