From ba052d3be973275bdd08c0fa413fb811d6506b8e Mon Sep 17 00:00:00 2001 From: Pierre Quinton Date: Tue, 3 Feb 2026 13:54:17 +0100 Subject: [PATCH 1/3] ci: Make `ty` output in Github format --- .github/workflows/checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 3ef322f3..5b8d04f6 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -123,7 +123,7 @@ jobs: groups: check test plot - name: Run ty - run: uv run ty check + run: uv run ty check --output-format=github check-todos: name: Absence of TODOs From cc54a93f4de55fa94f1198e912a3c6e587177f85 Mon Sep 17 00:00:00 2001 From: Pierre Quinton Date: Tue, 3 Feb 2026 13:55:16 +0100 Subject: [PATCH 2/3] add fake typing error --- src/torchjd/autogram/_gramian_accumulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torchjd/autogram/_gramian_accumulator.py b/src/torchjd/autogram/_gramian_accumulator.py index 91ace4e6..b45bf4b1 100644 --- a/src/torchjd/autogram/_gramian_accumulator.py +++ b/src/torchjd/autogram/_gramian_accumulator.py @@ -18,7 +18,7 @@ def __init__(self) -> None: def reset(self) -> None: self._gramian = None - def accumulate_gramian(self, gramian: PSDMatrix) -> None: + def accumulate_gramian(self, gramian: PSDMatrix) -> PSDMatrix: if self._gramian is not None: self._gramian.add_(gramian) else: From 7eb1966239f68bc3d4cad8fbbc6a8a49fc68fb0c Mon Sep 17 00:00:00 2001 From: Pierre Quinton Date: Tue, 3 Feb 2026 14:06:58 +0100 Subject: [PATCH 3/3] Revert "add fake typing error" This reverts commit cc54a93f4de55fa94f1198e912a3c6e587177f85. --- src/torchjd/autogram/_gramian_accumulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torchjd/autogram/_gramian_accumulator.py b/src/torchjd/autogram/_gramian_accumulator.py index b45bf4b1..91ace4e6 100644 --- a/src/torchjd/autogram/_gramian_accumulator.py +++ b/src/torchjd/autogram/_gramian_accumulator.py @@ -18,7 +18,7 @@ def __init__(self) -> None: def reset(self) -> None: self._gramian = None - def accumulate_gramian(self, gramian: PSDMatrix) -> PSDMatrix: + def accumulate_gramian(self, gramian: PSDMatrix) -> None: if self._gramian is not None: self._gramian.add_(gramian) else: