From 8f34186b10d727ec1f6ec9da482e28b7bb09ff5f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 18 Aug 2020 02:24:43 +0200 Subject: [PATCH] Document magic --- royalnet/constellation/api/magic.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/royalnet/constellation/api/magic.py b/royalnet/constellation/api/magic.py index f7feecee..f4461cf1 100644 --- a/royalnet/constellation/api/magic.py +++ b/royalnet/constellation/api/magic.py @@ -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)