Last active
July 18, 2022 19:27
-
-
Save Tobi-De/aa6025962cd60b46ed014b1dbe47fff7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def decorator(arg1, arg2): | |
def wrapper(func): | |
def inner(*args, **kwargs): | |
... | |
@decorator(1, 2) # my_func = decorator(my_func)(1,2) | |
def my_func(): | |
pass | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment