core: fix user declaration according to new NumPy API 1.20

8 jobs for pr/228 in 9 minutes and 26 seconds (queued for 2 seconds)