From e477b14bf129c065fd7c31d94cd60c6a736eab2c Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 2 Aug 2020 12:43:10 +0200 Subject: Remove useless "extern" modifiers from cdef classes declared in "extern" sections. --- Cython/Includes/numpy/__init__.pxd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cython/Includes/numpy/__init__.pxd b/Cython/Includes/numpy/__init__.pxd index 9d7a6112b..f5e215134 100644 --- a/Cython/Includes/numpy/__init__.pxd +++ b/Cython/Includes/numpy/__init__.pxd @@ -227,11 +227,11 @@ cdef extern from "numpy/arrayobject.h": # this field via the inline helper method PyDataType_SHAPE. cdef PyArray_ArrayDescr* subarray - ctypedef extern class numpy.flatiter [object PyArrayIterObject]: + ctypedef class numpy.flatiter [object PyArrayIterObject, check_size ignore]: # Use through macros pass - ctypedef extern class numpy.broadcast [object PyArrayMultiIterObject]: + ctypedef class numpy.broadcast [object PyArrayMultiIterObject, check_size ignore]: # Use through macros pass @@ -915,7 +915,7 @@ cdef extern from "numpy/ufuncobject.h": ctypedef void (*PyUFuncGenericFunction) (char **, npy_intp *, npy_intp *, void *) - ctypedef extern class numpy.ufunc [object PyUFuncObject]: + ctypedef class numpy.ufunc [object PyUFuncObject, check_size ignore]: cdef: int nin, nout, nargs int identity -- cgit v1.2.1