From 792fb9e5ad24fea16753fa9b9c25e0f4436e2c10 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Fri, 21 Oct 2022 15:14:38 +0200 Subject: Python: Fix meta docstring format --- wrappers/python/eduvpn_common/event.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (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 193e659..979c4f2 100644 --- a/wrappers/python/eduvpn_common/event.py +++ b/wrappers/python/eduvpn_common/event.py @@ -21,7 +21,7 @@ def class_state_transition(state: int, state_type: StateType) -> Callable: :param state: int: The state of the transition :param state_type: StateType: The type of transition - :meta: private: + :meta private: """ def wrapper(func): """ @@ -42,7 +42,7 @@ def convert_data(lib: CDLL, state: int, data: Any) -> None: :param state: int: The state to convert the data for :param data: Any: The data itself that has to be converted - :meta: private: + :meta private: """ if not data: return None @@ -75,7 +75,7 @@ class EventHandler(object): :param cls: Any: The class to change the callbacks for :param add: bool: (Default value = True): Whether or not to add or remove the event. If true the event gets added - :meta: private: + :meta private: """ # Loop over method names for method_name in dir(cls): @@ -103,7 +103,7 @@ class EventHandler(object): :param state_type: StateType: The state type to remove the event for :param func: Callable: The function that needs to be removed from the event - :meta: private: + :meta private: """ for key, values in self.handlers.copy().items(): if key == (state, state_type): @@ -120,7 +120,7 @@ class EventHandler(object): :param state_type: StateType: The state type to add the event for :param func: Callable: The function that needs to be added to the event - :meta: private: + :meta private: """ if (state, state_type) not in self.handlers: self.handlers[(state, state_type)] = [] @@ -132,7 +132,7 @@ class EventHandler(object): :param state: int: The state of the event :param state_type: StateType: The state type of the event - :meta: private: + :meta private: """ def wrapped_f(func): """ @@ -155,7 +155,7 @@ class EventHandler(object): :param state_type: StateType: The state type of the event :param data: str: The data that gets passed to the function callback when the event is ran - :meta: private: + :meta private: """ if (state, state_type) not in self.handlers: return -- cgit v1.2.3