Skip to content

Commit

Permalink
Type Buffer's flags argument (#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham authored Nov 18, 2024
1 parent a345db6 commit 2309714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numcodecs/compat_ext.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ from .compat import ensure_contiguous_ndarray
cdef class Buffer:
"""Convenience class for buffer interface."""

def __cinit__(self, obj, flags):
def __cinit__(self, obj, int flags):
PyObject_GetBuffer(obj, &(self.buffer), flags)
self.acquired = True
self.ptr = <char *> self.buffer.buf
Expand Down

0 comments on commit 2309714

Please sign in to comment.