diff options
| author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-09-12 15:36:09 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-12 15:36:09 -0500 |
| commit | 8adeca227a39640b0ad4db38ca34a77a0bb50c8f (patch) | |
| tree | f8cfa27a28eabe4b52ee4465419c391bbc64420d /numpy/__init__.cython-30.pxd | |
| parent | c7d83e7412169399586272176d5ad839b568ba57 (diff) | |
| parent | 52b4c49ef8ad74a811b9b0e751d913da9d1a5933 (diff) | |
| download | numpy-8adeca227a39640b0ad4db38ca34a77a0bb50c8f.tar.gz | |
Merge pull request #17150 from eric-wieser/cython-isinstance
ENH: Add support for the abstract scalars to cython code
Diffstat (limited to 'numpy/__init__.cython-30.pxd')
| -rw-r--r-- | numpy/__init__.cython-30.pxd | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/numpy/__init__.cython-30.pxd b/numpy/__init__.cython-30.pxd index 4d9ec1fed..a2c451bc1 100644 --- a/numpy/__init__.cython-30.pxd +++ b/numpy/__init__.cython-30.pxd @@ -808,6 +808,29 @@ cdef extern from "numpy/ndarraytypes.h": int64_t num cdef extern from "numpy/arrayscalars.h": + + # abstract types + ctypedef class numpy.generic [object PyObject]: + pass + ctypedef class numpy.number [object PyObject]: + pass + ctypedef class numpy.integer [object PyObject]: + pass + ctypedef class numpy.signedinteger [object PyObject]: + pass + ctypedef class numpy.unsignedinteger [object PyObject]: + pass + ctypedef class numpy.inexact [object PyObject]: + pass + ctypedef class numpy.floating [object PyObject]: + pass + ctypedef class numpy.complexfloating [object PyObject]: + pass + ctypedef class numpy.flexible [object PyObject]: + pass + ctypedef class numpy.character [object PyObject]: + pass + ctypedef struct PyDatetimeScalarObject: # PyObject_HEAD npy_datetime obval |
