With Cython 0.20.1 it works using cdef np.ndarray
, without specifying the data type and the number of dimensions:
import numpy as np
cimport numpy as np
cdef func1(np.ndarray A):
print A
def testing():
chunk = np.array([['huh','yea'], ['swell','ray']])
func1(chunk)