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

Create irrelevant_after decorator #1921

Open
cbeauchesne opened this issue Dec 13, 2023 · 0 comments
Open

Create irrelevant_after decorator #1921

cbeauchesne opened this issue Dec 13, 2023 · 0 comments

Comments

@cbeauchesne
Copy link
Collaborator

cbeauchesne commented Dec 13, 2023

Helping the declaration for version that changes a behavior. The idea is to use the version number where something has changed, and proposing a proper function name, rather asking user to handle with comparison operators

Basically, this :

@irrelevant_after("[email protected]", reason="This behavior has been deprecated on version 1.2.3")

is a sugar syntax for

@irrelevant(context.library >= "[email protected]", reason="This behavior has been deprecated on version 1.2.3")

Though, name could (should) be more explicit. What about :

@legacy_behavior(deprecated_at="[email protected]", reason="This behavior has been deprecated on version 1.2.3")
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

No branches or pull requests

1 participant