From 486cf2cb98e000f57d267755f57754c965ee1d8f Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 11 Mar 2024 11:47:25 +0100 Subject: Python main: Disable type annotation for global class object Gives a syntax error on some Python versions, Python bug?! https://bugs.python.org/issue34939 --- wrappers/python/eduvpn_common/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wrappers/python') 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 -- cgit v1.2.3