summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-03-11 11:47:25 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2024-03-11 11:47:25 +0100
commit486cf2cb98e000f57d267755f57754c965ee1d8f (patch)
tree31717292d09852ed5d9d254fefb927bec00d9321
parent9bc421138a2a4ecf5ee7dc46d9a4faa1af12c80e (diff)
Python main: Disable type annotation for global class object
Gives a syntax error on some Python versions, Python bug?! https://bugs.python.org/issue34939
-rw-r--r--wrappers/python/eduvpn_common/main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wrappers/python/eduvpn_common/main.py b/wrappers/python/eduvpn_common/main.py
index 2b60bce..1494b48 100644
--- a/wrappers/python/eduvpn_common/main.py
+++ b/wrappers/python/eduvpn_common/main.py
@@ -19,6 +19,9 @@ from eduvpn_common.event import EventHandler
from eduvpn_common.state import State
+global_object = None
+
+
class WrappedError(Exception):
def __init__(self, translations, language, misc):
self.translations = translations
@@ -373,9 +376,6 @@ class EduVPN(object):
self.jar.cancel()
-global_object: Optional[EduVPN] = None
-
-
@TokenSetter
def token_setter(
server_id: ctypes.c_char_p, server_type: ctypes.c_int, tokens: ctypes.c_char_p