diff options
Diffstat (limited to 'wrappers/python/eduvpn_common/event.py')
| -rw-r--r-- | wrappers/python/eduvpn_common/event.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wrappers/python/eduvpn_common/event.py b/wrappers/python/eduvpn_common/event.py index 4387222..746a0c9 100644 --- a/wrappers/python/eduvpn_common/event.py +++ b/wrappers/python/eduvpn_common/event.py @@ -23,6 +23,7 @@ def class_state_transition(state: int, state_type: StateType) -> Callable: :meta private: """ + def wrapper(func): """ @@ -65,6 +66,7 @@ def convert_data(lib: CDLL, state: int, data: Any) -> None: class EventHandler(object): """The class that neatly handles event callbacks from the internal Go FSM""" + def __init__(self, lib: CDLL): self.handlers: Dict[Tuple[int, StateType], List[Callable]] = {} self.lib = lib @@ -134,6 +136,7 @@ class EventHandler(object): :meta private: """ + def wrapped_f(func): """ |
