Skip to content

Commit 84951a6

Browse files
committed
MAINT: Remove private CopyMode enum to private header
1 parent 4b2cd27 commit 84951a6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

numpy/core/include/numpy/ndarraytypes.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -449,12 +449,6 @@ typedef struct {
449449
int len;
450450
} PyArray_Dims;
451451

452-
typedef enum {
453-
NPY_COPY_IF_NEEDED = 0,
454-
NPY_COPY_ALWAYS = 1,
455-
NPY_COPY_NEVER = 2,
456-
} _PyArray_CopyMode;
457-
458452
typedef struct {
459453
/*
460454
* Functions to cast to most other standard types

numpy/core/src/multiarray/conversion_utils.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ PyArray_IntpConverter(PyObject *obj, PyArray_Dims *seq);
99
NPY_NO_EXPORT int
1010
PyArray_OptionalIntpConverter(PyObject *obj, PyArray_Dims *seq);
1111

12+
typedef enum {
13+
NPY_COPY_IF_NEEDED = 0,
14+
NPY_COPY_ALWAYS = 1,
15+
NPY_COPY_NEVER = 2,
16+
} _PyArray_CopyMode;
17+
1218
NPY_NO_EXPORT int
1319
PyArray_CopyConverter(PyObject *obj, _PyArray_CopyMode *copyflag);
1420

0 commit comments

Comments
 (0)