mammoth-rainbow-82717
09/12/2023, 9:47 AMfast-vr-44972
09/12/2023, 3:37 PMcalm-energy-78015
09/13/2023, 10:47 AM@decorate_all_steps(decorators...)
flow decorator. Would be nice to have it solved nativelymammoth-rainbow-82717
09/13/2023, 12:55 PMdecorate_all_steps
approach? You use the _attach_decorators
method?calm-energy-78015
09/13/2023, 2:30 PMmethods = [
attr
for attr in cls.__dict__
if callable(getattr(cls, attr)) and getattr(getattr(cls, attr), "is_step", False)
]
for method in methods:
for decorator in decorators:
setattr(cls, method, decorator(getattr(cls, method)))
square-wire-39606
09/15/2023, 7:02 PM@conda
and @pypi
decoratorssquare-wire-39606
09/15/2023, 7:02 PM