ruff/crates/ruff_linter/resources/test/fixtures/numpy/NPY201_2.py

59 lines
680 B
Python

def func():
import numpy as np
np.obj2sctype(int)
np.PINF
np.PZERO
np.recfromcsv
np.recfromtxt
np.round_(12.34)
np.safe_eval
np.sctype2char
np.sctypes
np.seterrobj
np.set_numeric_ops
np.set_string_function
np.singlecomplex(12+1j)
np.string_("asdf")
np.source
np.tracemalloc_domain
np.unicode_("asf")
np.who()
np.row_stack(([1,2], [3,4]))
np.alltrue([True, True])
np.anytrue([True, False])
np.cumproduct([1, 2, 3])
np.product([1, 2, 3])
np.trapz([1, 2, 3])
np.in1d([1, 2], [1, 3, 5])
np.AxisError
np.ComplexWarning
np.compare_chararrays