diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-10-14 15:06:36 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-10-14 15:16:02 +0200 |
| commit | ef224e5dad25debf4526f2fb017bd771a60448dd (patch) | |
| tree | 63882cce7a4610f0d8f9b94509633a764cbbddc3 /wrappers/python/eduvpn_common/loader.py | |
| parent | e26dd96631022974223f0f4fba48dc95e036d63d (diff) | |
Python: Proper type annotations
Diffstat (limited to 'wrappers/python/eduvpn_common/loader.py')
| -rw-r--r-- | wrappers/python/eduvpn_common/loader.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wrappers/python/eduvpn_common/loader.py b/wrappers/python/eduvpn_common/loader.py index 23851f3..a5eec3f 100644 --- a/wrappers/python/eduvpn_common/loader.py +++ b/wrappers/python/eduvpn_common/loader.py @@ -1,9 +1,9 @@ -from ctypes import * +from ctypes import cdll, CDLL, c_char_p, c_int, c_void_p from collections import defaultdict import pathlib import platform from eduvpn_common import __version__ -from eduvpn_common.types import * +from eduvpn_common.types import cError, cServer, cServers, cServerProfiles, cServerLocations, cDiscoveryServer, cDiscoveryServers, ConfigError, DataError, VPNStateChange def load_lib(): @@ -39,7 +39,7 @@ def load_lib(): return lib -def initialize_functions(lib): +def initialize_functions(lib: CDLL): # Exposed functions # We have to use c_void_p instead of c_char_p to free it properly # See https://stackoverflow.com/questions/13445568/python-ctypes-how-to-free-memory-getting-invalid-pointer-error |
