wrappers.py 294 B

1234567891011
  1. from functools import wraps
  2. def after_call(after_func):
  3. def decorator(func):
  4. @wraps(func)
  5. def wrapper(*args, **kwargs):
  6. result = func(*args, **kwargs)
  7. after_func(*args, **kwargs)
  8. return result
  9. return wrapper
  10. return decorator