Skip to content

refactor(autojac): Factorize jacobian dict creation #303

refactor(autojac): Factorize jacobian dict creation

refactor(autojac): Factorize jacobian dict creation #303

Triggered via pull request March 6, 2026 10:53
Status Failure
Total duration 1m 25s
Artifacts

checks.yml

on: pull_request
Build documentation
1m 1s
Build documentation
Link correctness
5s
Link correctness
Code quality (ty and ruff)
41s
Code quality (ty and ruff)
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 1 notice
Code quality (ty and ruff)
Process completed with exit code 1.
ty (invalid-argument-type): tests/unit/autojac/test_jac_to_grad.py#L221
tests/unit/autojac/test_jac_to_grad.py:221:30: invalid-argument-type: Argument to bound method `append` is incorrect: Expected `tuple[AlignedMTL, bool] | tuple[DualProj, bool] | tuple[IMTLG, bool] | ... omitted 11 union elements`, found `tuple[NashMTL, Literal[False]]` stdlib/builtins.pyi:2843:9: info: Method defined here stdlib/builtins.pyi:2843:22: Parameter declared here info: rule `invalid-argument-type` is enabled by default
ty (invalid-argument-type): tests/unit/autojac/test_jac_to_grad.py#L214
tests/unit/autojac/test_jac_to_grad.py:214:30: invalid-argument-type: Argument to bound method `append` is incorrect: Expected `tuple[AlignedMTL, bool] | tuple[DualProj, bool] | tuple[IMTLG, bool] | ... omitted 11 union elements`, found `tuple[CAGrad, Literal[True]]` stdlib/builtins.pyi:2843:9: info: Method defined here stdlib/builtins.pyi:2843:22: Parameter declared here info: rule `invalid-argument-type` is enabled by default
ty (invalid-argument-type): tests/unit/aggregation/test_values.py#L100
tests/unit/aggregation/test_values.py:100:9: invalid-argument-type: Argument to bound method `append` is incorrect: Expected `tuple[AlignedMTL, Tensor, Tensor] | tuple[ConFIG, Tensor, Tensor] | tuple[Constant, Tensor, Tensor] | ... omitted 11 union elements`, found `ParameterSet` stdlib/builtins.pyi:2843:9: info: Method defined here stdlib/builtins.pyi:2843:22: Parameter declared here info: rule `invalid-argument-type` is enabled by default
ty (invalid-argument-type): tests/unit/aggregation/test_values.py#L92
tests/unit/aggregation/test_values.py:92:39: invalid-argument-type: Argument to bound method `append` is incorrect: Expected `tuple[AlignedMTLWeighting, Tensor, Tensor] | tuple[ConstantWeighting, Tensor, Tensor] | tuple[DualProjWeighting, Tensor, Tensor] | ... omitted 8 union elements`, found `tuple[CAGradWeighting, Tensor, Tensor]` stdlib/builtins.pyi:2843:9: info: Method defined here stdlib/builtins.pyi:2843:22: Parameter declared here info: rule `invalid-argument-type` is enabled by default
ty (invalid-argument-type): tests/unit/aggregation/test_values.py#L91
tests/unit/aggregation/test_values.py:91:40: invalid-argument-type: Argument to bound method `append` is incorrect: Expected `tuple[AlignedMTL, Tensor, Tensor] | tuple[ConFIG, Tensor, Tensor] | tuple[Constant, Tensor, Tensor] | ... omitted 11 union elements`, found `tuple[CAGrad, Tensor, Tensor]` stdlib/builtins.pyi:2843:9: info: Method defined here stdlib/builtins.pyi:2843:22: Parameter declared here info: rule `invalid-argument-type` is enabled by default