Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- all_attrs_dict = {x: y for cls_dict in cls_dicts for x, y in cls_dict.items()}
- for attr_name in all_attrs_dict:
- attr = getattr(cls, attr_name)
- if callable(attr):
- setattr(cls, attr_name, wrapper(attr)) # type: ignore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement