summaryrefslogtreecommitdiff
path: root/wrappers/python/eduvpn_common/event.py
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-21 15:14:38 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-21 15:14:38 +0200
commit792fb9e5ad24fea16753fa9b9c25e0f4436e2c10 (patch)
tree67649c03f309fda4e7fc21bf4ff46f6f6fc05bdb /wrappers/python/eduvpn_common/event.py
parent8fa80e56e014d9a77cfb337b2a2b641f1532ff8e (diff)
Python: Fix meta docstring format
Diffstat (limited to 'wrappers/python/eduvpn_common/event.py')
-rw-r--r--wrappers/python/eduvpn_common/event.py14
1 files changed, 7 insertions, 7 deletions
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