summaryrefslogtreecommitdiff
path: root/numpy/core/include
diff options
context:
space:
mode:
authorNathan Goldbaum <nathan.goldbaum@gmail.com>2023-02-09 14:19:39 -0700
committerNathan Goldbaum <nathan.goldbaum@gmail.com>2023-02-16 11:09:19 -0700
commit39d88df7c961f4d3bbd978c944673d3a9e9e12f4 (patch)
tree882f0b4ddfaa905c5cbb9039c4f2725f4142e16b /numpy/core/include
parent891ab8ee00755a539bd118b1bbe4e0a237a2d844 (diff)
downloadnumpy-39d88df7c961f4d3bbd978c944673d3a9e9e12f4.tar.gz
ENH: add _is_numeric attribute for DType classes
Diffstat (limited to 'numpy/core/include')
-rw-r--r--numpy/core/include/numpy/_dtype_api.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/include/numpy/_dtype_api.h b/numpy/core/include/numpy/_dtype_api.h
index 8ef879bfa..e0ec69b0b 100644
--- a/numpy/core/include/numpy/_dtype_api.h
+++ b/numpy/core/include/numpy/_dtype_api.h
@@ -5,7 +5,7 @@
#ifndef NUMPY_CORE_INCLUDE_NUMPY___DTYPE_API_H_
#define NUMPY_CORE_INCLUDE_NUMPY___DTYPE_API_H_
-#define __EXPERIMENTAL_DTYPE_API_VERSION 7
+#define __EXPERIMENTAL_DTYPE_API_VERSION 8
struct PyArrayMethodObject_tag;
@@ -263,6 +263,7 @@ typedef int translate_loop_descrs_func(int nin, int nout,
#define NPY_DT_ABSTRACT 1 << 1
#define NPY_DT_PARAMETRIC 1 << 2
+#define NPY_DT_NUMERIC 1 << 3
#define NPY_DT_discover_descr_from_pyobject 1
#define _NPY_DT_is_known_scalar_type 2