Skip to content

Commit c55e103

Browse files
ci(pre-commit.ci): autoupdate (#277)
* ci(pre-commit.ci): autoupdate updates: - [github.com/adhtruong/mirrors-typos: v1.39.0 → v1.40.0](adhtruong/mirrors-typos@v1.39.0...v1.40.0) - [github.com/astral-sh/ruff-pre-commit: v0.14.3 → v0.14.7](astral-sh/ruff-pre-commit@v0.14.3...v0.14.7) - [github.com/pre-commit/mirrors-mypy: v1.18.2 → v1.19.0](pre-commit/mirrors-mypy@v1.18.2...v1.19.0) * fix --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Talley Lambert <[email protected]>
1 parent c2d64b4 commit c55e103

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ repos:
1010
- id: validate-pyproject
1111

1212
- repo: https://github.com/adhtruong/mirrors-typos
13-
rev: v1.39.0
13+
rev: v1.40.0
1414
hooks:
1515
- id: typos
1616
args: [--force-exclude] # omit --write-changes
1717

1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.14.3
19+
rev: v0.14.7
2020
hooks:
2121
- id: ruff-check
2222
- id: ruff-format
2323

2424
- repo: https://github.com/pre-commit/mirrors-mypy
25-
rev: v1.18.2
25+
rev: v1.19.0
2626
hooks:
2727
- id: mypy
2828
files: "^src/"

src/nd2/_parse/_parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def load_global_metadata(
505505
match = re.search(r"\s?(\d+)?x", text_info["optics"], re.IGNORECASE)
506506
if match:
507507
mag = float(match[1])
508-
projectiveMagnification = raw_meta.get("dProjectiveMag")
508+
projectiveMagnification: float | None = raw_meta.get("dProjectiveMag")
509509
if projectiveMagnification and projectiveMagnification < 0:
510510
projectiveMagnification = None
511511
pinhole = raw_meta.get("dPinholeRadius", 0) * 2

0 commit comments

Comments
 (0)