This commit is contained in:
Dave Gallant
2021-01-03 21:20:29 -05:00
parent e3fe838e17
commit e796866dd1
3 changed files with 192 additions and 8 deletions

View File

@@ -10,4 +10,5 @@ def decorate_all_methods(decorator, exclude=None):
if callable(getattr(cls, attr)) and attr not in exclude:
setattr(cls, attr, decorator(getattr(cls, attr)))
return cls
return decorate