mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Document magic
This commit is contained in:
parent
79304e12ba
commit
8f34186b10
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue