Created
June 29, 2020 23:49
-
-
Save eklitzke/c77f7682e4e452cf3491c4a4fa69a6f2 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 docme(f): | |
f.__doc__ = "lol" | |
return f | |
@docme | |
def foo(): | |
pass | |
# now it's like as if i had put "lol" as the docstring of f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment