Fix various type hints

This commit is contained in:
2026-04-05 08:27:40 +08:00
parent 29dfc6c5a4
commit 674b0de3b2
36 changed files with 157 additions and 121 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ def match_journal_entry_detail(location: str) -> int:
:return: The journal entry ID.
:raise AssertionError: When the location is not the journal entry detail.
"""
m: re.Match = re.match(
m: re.Match[str] | None = re.match(
r"^/accounting/journal-entries/(\d+)\?next=", location)
assert m is not None
return int(m.group(1))