fix: use duck-typing check in place of isinstance(..., np.ndarray)
…
#1877
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention