From 1fe10973ddc921424129c8c92ead581f8a7c5d0b Mon Sep 17 00:00:00 2001 From: YoSTEALTH Date: Wed, 24 Apr 2024 14:12:34 -0600 Subject: [PATCH] queue: added `*args, **kwargs` to `__cinit__` so `io_uring_sqe` sub-class can use custom argument without being limited. --- src/liburing/__init__.py | 2 +- src/liburing/queue.pyx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/liburing/__init__.py b/src/liburing/__init__.py index f276dd1..14fa732 100644 --- a/src/liburing/__init__.py +++ b/src/liburing/__init__.py @@ -1,7 +1,7 @@ from dynamic_import import importer -__version__ = '2024.4.23' +__version__ = '2024.4.24' importer(exclude_dir=['lib', 'include']) diff --git a/src/liburing/queue.pyx b/src/liburing/queue.pyx index 42fa1c7..ae6765e 100644 --- a/src/liburing/queue.pyx +++ b/src/liburing/queue.pyx @@ -64,7 +64,7 @@ cdef class io_uring_sqe: you are going to "put" pre-made sqe(s) into the ring later. Refer to `help(io_uring_put_sqe)` to see more detail. ''' - def __cinit__(self, __u16 num=1): + def __cinit__(self, __u16 num=1, *args, **kwargs): cdef str msg if num: if num > 1024: