Skip to content

Commit dffb5cd

Browse files
committed
Fix mypy
1 parent ace6ad3 commit dffb5cd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929
- pillow>=10.4.0
3030
- pytest>=6.1.2
3131
- scikit-image>=0.22.0
32-
- torch>=2.3
32+
- torch>=2.6
3333
- torchmetrics>=0.10
3434
- torchvision>=0.18
3535
exclude: (build|data|dist|logo|logs|output)/

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ def matplotlib_backend() -> None:
2727

2828
@pytest.fixture(autouse=True)
2929
def torch_hub(tmp_path: Path) -> None:
30-
torch.hub.set_dir(tmp_path) # type: ignore[no-untyped-call]
30+
torch.hub.set_dir(tmp_path)

tests/models/test_croma.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
)
1919

2020

21-
def save_model(model: torch.nn.Module, path: Path) -> None:
21+
def save_model(model: CROMA, path: Path) -> None:
2222
state_dict = {
2323
's1_encoder': model.s1_encoder.state_dict(),
2424
's1_GAP_FFN': model.s1_GAP_FFN.state_dict(),

0 commit comments

Comments
 (0)