numpy.i: a SWIG interface file for NumPy — NumPy v2.6.dev0 Manual
Within a compiled Python module, import_array() should only get called once. This could be in a C/C++ file that you have written and is linked to the module. If this is the case, then none of your interface files should #define SWIG_FILE_WITH_INIT or call import_array().