Skip to content

Commit 780a00b

Browse files
committed
Update dependencies and fix code formatting
1 parent f1abf92 commit 780a00b

File tree

4 files changed

+160
-158
lines changed

4 files changed

+160
-158
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ repos:
1616
- id: check-toml
1717

1818
- repo: https://github.com/python-poetry/poetry
19-
rev: 1.8.3
19+
rev: 1.8.4
2020
hooks:
2121
- id: poetry-check
2222
args: [--lock]
2323

2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: v0.6.9
25+
rev: v0.7.2
2626
hooks:
2727
- id: ruff
2828
args: [--fix, --exit-non-zero-on-fix]
@@ -31,13 +31,13 @@ repos:
3131
types_or: [ python, pyi, jupyter ]
3232

3333
- repo: https://github.com/crate-ci/typos
34-
rev: v1.26.0
34+
rev: v1.27.0
3535
hooks:
3636
- id: typos
3737
args: []
3838

3939
- repo: https://github.com/pre-commit/mirrors-mypy
40-
rev: v1.11.2
40+
rev: v1.13.0
4141
hooks:
4242
- id: mypy
4343
entry: mypy

mmlearn/modules/metrics/retrieval_recall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def _is_distributed(self) -> bool:
9999
if self.distributed_available_fn is not None:
100100
distributed_available = self.distributed_available_fn
101101

102-
return distributed_available() if callable(distributed_available) else False # type: ignore[no-any-return]
102+
return distributed_available() if callable(distributed_available) else False
103103

104104
def update(self, x: torch.Tensor, y: torch.Tensor, indexes: torch.Tensor) -> None:
105105
"""Check shape, convert dtypes and add to accumulators.

0 commit comments

Comments
 (0)