This file contains 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
from functools import wraps | |
import builtins | |
def printRecursionTree(func): | |
global _recursiondepth | |
_print = builtins.print | |
_recursiondepth = 0 | |
def getpads(): | |
if _recursiondepth == 0: |
This file contains 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
from __future__ import annotations | |
from enum import IntEnum | |
from typing import Callable, Generic, List, Optional, Tuple, TypeVar | |
__all__ = ['Event', 'handler', 'EventMetaAction'] | |
class EventMetaAction(IntEnum): | |
handler_added = 1 |