Created
May 17, 2020 13:30
-
-
Save cobanov/0822499269928f37358eb26e5c6c56ad 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 print_return_type(func): | |
def wrapper(*args, **kwargs): | |
result = func(*args, **kwargs) | |
print(f"{func.__name__}, {type(result)}") | |
return result | |
return wrapper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment