Skip to content

Commit 3ddf29f

Browse files
committed
chore: fix mypy issues
1 parent 10d9dad commit 3ddf29f

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
---
22
repos:
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: 'v0.11.6'
4+
rev: 'v0.13.0'
55
hooks:
66
- id: ruff
77
args: [--fix, --exit-non-zero-on-fix]
88
- id: ruff-format
9+
10+
- repo: https://github.com/pre-commit/mirrors-mypy
11+
rev: 'v1.18.1'
12+
hooks:
13+
- id: mypy
14+
915
- repo: https://github.com/codespell-project/codespell
10-
rev: v2.4.1
16+
rev: 'v2.4.1'
1117
hooks:
1218
- id: codespell
1319
additional_dependencies:

src/joserfc/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,6 @@ def check_crit_header(registry: HeaderRegistryDict, header: Header) -> None:
213213
raise UnsupportedHeaderError(f"Unsupported {unsupported_crit_headers} in header")
214214

215215

216-
def reject_unprotected_crit_header(unprotected: Header) -> None:
216+
def reject_unprotected_crit_header(unprotected: Header | None) -> None:
217217
if unprotected and "crit" in unprotected:
218218
raise UnsupportedHeaderError("'crit' header MUST be protected header")

0 commit comments

Comments
 (0)