From b0236124fb328f5d1e863f3c76e6d57273519a15 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 1 Mar 2023 00:35:39 +0100 Subject: Format: Run black and gofumpt --- wrappers/python/eduvpn_common/event.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'wrappers/python/eduvpn_common/event.py') 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): """ -- cgit v1.2.3