From 7e2851c5d3399fbbd05724583bacaf9102951443 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 29 Aug 2026 00:46:27 +0000 Subject: [PATCH 1/2] chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.16.5 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 07657e7..9684217 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -55,7 +55,7 @@ repos: - id: prettier args: ["--tab-width", "2"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.16.4 + rev: v0.16.5 hooks: - id: ruff-check args: [--fix, --exit-non-zero-on-fix] From 1c86be116073cc881498418cc81662252195ff95 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 29 Aug 2026 00:46:40 +0000 Subject: [PATCH 2/2] chore(pre-commit.ci): auto fixes --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index bc2684a..7e670cf 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,7 @@ assert not isinstance(array_api_strict, ArrayNamespaceFull) ```python from array_api.latest import ShapedAnyArray as Array + def sum_last_axis[*TShape](x: Array[*TShape, Any]) -> Array[*TShape]: return xp.sum(x, axis=-1) ``` @@ -117,6 +118,8 @@ assert not isinstance(array_api_strict, ArrayNamespaceFull) ```python RTheta = NewType("RTheta", int) XY = NewType("XY", int) + + def polar_coordinates[*TShape](randtheta: Array[*TShape, RTheta]) -> Array[*TShape, XY]: """Convert polar coordinates to Cartesian coordinates.""" r = randtheta[..., 0]