Skip to content

Commit

Permalink
chore(deps): bump ruff from 0.1.14 to 0.2.1 in /requirements/lintrunn…
Browse files Browse the repository at this point in the history
…er (#1273)
  • Loading branch information
dependabot[bot] authored Feb 9, 2024
1 parent 9923238 commit 4a7dfaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion onnxscript/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion requirements/lintrunner/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4a7dfaa

Please sign in to comment.