1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +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): def magic(func):
# i made this at 2:00 am """Mark a function as "magic", so its override can be detected externally."""
# 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
func.__magic__ = True func.__magic__ = True
@functools.wraps(func) @functools.wraps(func)