mirror of
https://github.com/davegallant/decorate-all-methods.git
synced 2025-08-06 09:53:38 +00:00
Cleanup
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user