generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What would you like?
The current implementation of the @durable_step decorator injects the StepContext object as the first positional argument, moving self (instanse pointer) to the second position if it decorates an method inside a class. This contradicts the PEP8 requirements:
Always use self for the first argument to instance methods.
Always use cls for the first argument to class methods.
I suggest refactoring the decorator behavior while it's not too late, although this will become a breaking change for the currently decorated class methods already running.
I am ready to try to solve this if approved.
Is this a breaking change?
Yes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request