Skip to content

Instantly share code, notes, and snippets.

@cobanov
Created May 17, 2020 13:30
Show Gist options
  • Save cobanov/0822499269928f37358eb26e5c6c56ad to your computer and use it in GitHub Desktop.
Save cobanov/0822499269928f37358eb26e5c6c56ad to your computer and use it in GitHub Desktop.
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