Skip to content

Commit 7ad9fe8

Browse files
committed
fix typing and json schema precommit hook
1 parent 7052872 commit 7ad9fe8

File tree

3 files changed

+13877
-13889
lines changed

3 files changed

+13877
-13889
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
pass_filenames: false
2323
- id: generate json schemas
2424
name: generate json schemas
25-
entry: python scripts/generate_json_schema.py
25+
entry: python scripts/write_json_schema.py
2626
language: system
2727
always_run: true
2828
pass_filenames: false

src/bioimageio/spec/model/v0_5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ def _validate_sample_tensor(self) -> Self:
15801580
return self
15811581

15821582
reader = get_reader(self.sample_tensor.source, sha256=self.sample_tensor.sha256)
1583-
tensor: NDArray[Any] = imread(
1583+
tensor: NDArray[Any] = imread( # pyright: ignore[reportUnknownVariableType]
15841584
reader.read(),
15851585
extension=PurePosixPath(reader.original_file_name).suffix,
15861586
)

0 commit comments

Comments
 (0)