diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-04-12 22:48:02 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2023-09-25 09:43:37 +0200 |
| commit | e361ec863961982e01f3d7f5842245dac88a05fd (patch) | |
| tree | ce5a92cc598d62c9a3c950d5c7bc742405943f64 /wrappers/python/eduvpn_common | |
| parent | 1e54063813efb6e822df36ad39d7f889a7f2e38b (diff) | |
Format: Run gofumpt (Go) + black (py)
Diffstat (limited to 'wrappers/python/eduvpn_common')
| -rw-r--r-- | wrappers/python/eduvpn_common/types.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/wrappers/python/eduvpn_common/types.py b/wrappers/python/eduvpn_common/types.py index b01455d..1eba468 100644 --- a/wrappers/python/eduvpn_common/types.py +++ b/wrappers/python/eduvpn_common/types.py @@ -1,5 +1,13 @@ -from ctypes import (CDLL, CFUNCTYPE, Structure, c_char_p, c_int, c_ulonglong, - c_void_p, cast) +from ctypes import ( + CDLL, + CFUNCTYPE, + Structure, + c_char_p, + c_int, + c_ulonglong, + c_void_p, + cast, +) from typing import Any, Iterator, List, Tuple @@ -86,9 +94,7 @@ def get_ptr_string(lib: CDLL, ptr: c_void_p) -> str: return "" -def get_data_error( - lib: CDLL, data_error: DataError -) -> Tuple[str, str]: +def get_data_error(lib: CDLL, data_error: DataError) -> Tuple[str, str]: """Convert a C data+error structure to a Python usable data+error structure :param lib: CDLL: The Go shared library @@ -104,9 +110,7 @@ def get_data_error( return data, error -def get_bool_error( - lib: CDLL, bool_error: BoolError -) -> Tuple[bool, str]: +def get_bool_error(lib: CDLL, bool_error: BoolError) -> Tuple[bool, str]: """Convert a C boolean (c int)+error structure to a Python usable boolean+error structure :param lib: CDLL: The Go shared library |
