1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Document magic

This commit is contained in:
Steffo 2020-08-18 02:24:43 +02:00
parent 79304e12ba
commit 8f34186b10

View file

@ -2,10 +2,7 @@ import functools
def magic(func):
# i made this at 2:00 am
# at 2:15 am i already had no idea on how it worked
# at 2:30 i still have no idea but it works appearently
# 2:40 TODO: document me
"""Mark a function as "magic", so its override can be detected externally."""
func.__magic__ = True
@functools.wraps(func)