Replace threading.Lock with cython.pymutex and upgrade Cython to 3.2.4

Made-with: Cursor
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-03-30 02:44:30 +03:00
parent 86b8f076b7
commit ea099d12da
3 changed files with 11 additions and 19 deletions
+3 -1
View File
@@ -7,10 +7,12 @@ cdef enum AIAvailabilityEnum:
WARNING = 300
ERROR = 500
from cython cimport pymutex
cdef class AIAvailabilityStatus:
cdef int status
cdef str error_message
cdef object _lock
cdef pymutex _lock
cdef bytes serialize(self)
cdef set_status(self, int status, str error_message=*)