You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have a decorator that can check for "before_hook" and "after_hook" to provide a simple hook mechanism for specific functions.
The idea would be to look at kwargs to pull out values for before_hook and after_hook as tuples. These would then get executed prior to the main function execution and after the main function execution.
The text was updated successfully, but these errors were encountered:
It would be nice to have a decorator that can check for "before_hook" and "after_hook" to provide a simple hook mechanism for specific functions.
The idea would be to look at kwargs to pull out values for before_hook and after_hook as tuples. These would then get executed prior to the main function execution and after the main function execution.
The text was updated successfully, but these errors were encountered: