diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-03-01 00:35:39 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-03-01 00:35:39 +0100 |
| commit | b0236124fb328f5d1e863f3c76e6d57273519a15 (patch) | |
| tree | 9b28b3637061f8ff1637e88adf8914a069baf5b1 /wrappers/python/eduvpn_common/event.py | |
| parent | a1519ff7685ac987f9d70b1fb49bf777028d49b0 (diff) | |
Format: Run black and gofumpt
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): """ |
