Skip to content

Commit

Permalink
PyArrayFlagsObject is a legacy struct
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Dec 10, 2023
1 parent 01829b6 commit d82d3a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/core/include/numpy/ndarraytypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ typedef struct PyArrayFlagsObject {
int flags;
} PyArrayFlagsObject;

HPyType_HELPERS(PyArrayFlagsObject);
HPyType_LEGACY_HELPERS(PyArrayFlagsObject);

/* Mirrors buffer object to ptr */

Expand Down
1 change: 1 addition & 0 deletions numpy/core/src/multiarray/flagsobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,7 @@ NPY_NO_EXPORT HPyType_Spec PyArrayFlags_Type_Spec = {
.basicsize = sizeof(PyArrayFlagsObject),
.flags = HPy_TPFLAGS_DEFAULT,
.defines = arrayflags_defines,
.builtin_shape = HPyType_BuiltinShape_Legacy,
};

NPY_NO_EXPORT PyTypeObject *_PyArrayFlags_Type_p;

0 comments on commit d82d3a0

Please sign in to comment.