From cc25dccef004f4cd6e4ad3120296a9700aa43c19 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 23 Feb 2026 17:20:14 +0100 Subject: Update to support newer versions of cython MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- LICENSE | 2 +- libcoopgamma.pyx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/LICENSE b/LICENSE index 83ceedf..09be60a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ ISC License -© 2016, 2019 Mattias Andrée +© 2016, 2019, 2026 Mattias Andrée Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above diff --git a/libcoopgamma.pyx b/libcoopgamma.pyx index e534ece..9a0fd58 100644 --- a/libcoopgamma.pyx +++ b/libcoopgamma.pyx @@ -771,7 +771,7 @@ def _libcoopgamma_native_get_methods(): return ret -def _libcoopgamma_native_get_method_and_site(method : str, site : str): +def _libcoopgamma_native_get_method_and_site(method : str | NoneType, site : str | NoneType): ''' Get the adjustment method and site @@ -819,7 +819,7 @@ def _libcoopgamma_native_get_method_and_site(method : str, site : str): free(rcssite) -def _libcoopgamma_native_get_pid_file(method : str, site : str): +def _libcoopgamma_native_get_pid_file(method : str | NoneType, site : str | NoneType): ''' Get the PID file of the coopgamma server @@ -857,7 +857,7 @@ def _libcoopgamma_native_get_pid_file(method : str, site : str): return int(errno) -def _libcoopgamma_native_get_socket_file(method : str, site : str): +def _libcoopgamma_native_get_socket_file(method : str | NoneType, site : str | NoneType): ''' Get the socket file of the coopgamma server @@ -1086,7 +1086,7 @@ def _libcoopgamma_native_async_context_unmarshal(buf : bytes): free(bs) -def _libcoopgamma_native_connect(method : str, site : str, address : int): +def _libcoopgamma_native_connect(method : str | NoneType, site : str | NoneType, address : int): ''' Connect to a coopgamma server, and start it if necessary @@ -2382,7 +2382,7 @@ class FilterTable: if filters is None: self.filters else: - self.filters = list(QueriedFilter(*f) if isinstance(f, tuple) else f for f in filters) + self.filters = list(QueriedFilter(*f) if isinstance(f, tuple) else f for f in filters) def make_ramps(self): ''' -- cgit v1.2.3-70-g09d2