Skip to content

Commit

Permalink
queue: added *args, **kwargs to __cinit__ so io_uring_sqe
Browse files Browse the repository at this point in the history
sub-class can use custom argument without being limited.
  • Loading branch information
YoSTEALTH committed Apr 24, 2024
1 parent 2008e4a commit 1fe1097
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/liburing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dynamic_import import importer


__version__ = '2024.4.23'
__version__ = '2024.4.24'


importer(exclude_dir=['lib', 'include'])
Expand Down
2 changes: 1 addition & 1 deletion src/liburing/queue.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1fe1097

Please sign in to comment.