diff --git a/onnxscript/evaluator.py b/onnxscript/evaluator.py index c0ee49410..33ef1f624 100644 --- a/onnxscript/evaluator.py +++ b/onnxscript/evaluator.py @@ -390,7 +390,7 @@ def _numpy_to_onnxscript_value( """Converts an ORT encoding of an ONNX value into the encoding used by onnxscript.""" if isinstance(v, np.ndarray): return tensor.Tensor(v) - if np.issctype(type(v)): + if np.issctype(type(v)): # noqa: NPY201 # Numpy scalar types that are not ndarray # https://numpy.org/doc/stable/reference/arrays.scalars.html return tensor.Tensor(np.array(v)) diff --git a/requirements/lintrunner/requirements.txt b/requirements/lintrunner/requirements.txt index bb1e2bc24..4be10ef3c 100644 --- a/requirements/lintrunner/requirements.txt +++ b/requirements/lintrunner/requirements.txt @@ -1,7 +1,7 @@ # This file is auto updated by dependabot lintrunner-adapters>=0.8.0 # RUFF, RUFF-FIX -ruff==0.1.14 +ruff==0.2.1 # MYPY mypy==1.8.0 types-PyYAML==6.0.12.11