system-tests icon indicating copy to clipboard operation
system-tests copied to clipboard

Create irrelevant_after decorator

Open cbeauchesne opened this issue 1 year ago • 0 comments
trafficstars

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")

cbeauchesne avatar Dec 13 '23 12:12 cbeauchesne