Skip to content

Commit 8e4a737

Browse files
committed
chore: fix typing errors
Release-As: 1.10.4
1 parent 5a60865 commit 8e4a737

5 files changed

Lines changed: 9 additions & 17 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.10.4"
2+
".": "1.10.3"
33
}

CHANGELOG.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# Changelog
22

3-
## [1.10.4](https://github.com/markbeep/AudioBookRequest/compare/v1.10.3...v1.10.4) (2026-04-08)
4-
5-
6-
### Dependencies
7-
8-
* update vulnerable dependencies ([dcc962e](https://github.com/markbeep/AudioBookRequest/commit/dcc962e8be73448f628e1abe5a2f16ad43a4e9f2))
9-
103
## [1.10.3](https://github.com/markbeep/AudioBookRequest/compare/v1.10.2...v1.10.3) (2026-03-11)
114

125

app/util/cache.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import time
2-
from abc import ABC
32
from typing import overload
43

54
from sqlmodel import Session, select
@@ -35,7 +34,7 @@ def flush(self):
3534
self._cache = {}
3635

3736

38-
class StringConfigCache[L: str](ABC):
37+
class StringConfigCache[L: str]:
3938
_cache: dict[L, str] = {}
4039

4140
@overload

app/util/templates.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ def _to_js_string(val: str | int | float) -> str:
3535
# filters
3636
templates.env.filters["toJSstring"] = _to_js_string
3737
# globals
38-
templates.env.globals["getattr"] = getattr
39-
templates.env.globals["version"] = Settings().app.version
40-
templates.env.globals["json_regexp"] = (
38+
templates.env.globals["getattr"] = getattr # pyright: ignore[reportArgumentType]
39+
templates.env.globals["version"] = Settings().app.version # pyright: ignore[reportArgumentType]
40+
templates.env.globals["json_regexp"] = ( # pyright: ignore[reportArgumentType]
4141
r'^\{\s*(?:"[^"\\]*(?:\\.[^"\\]*)*"\s*:\s*"[^"\\]*(?:\\.[^"\\]*)*"\s*(?:,\s*"[^"\\]*(?:\\.[^"\\]*)*"\s*:\s*"[^"\\]*(?:\\.[^"\\]*)*"\s*)*)?\}$'
4242
)
43-
templates.env.globals["base_url"] = Settings().app.base_url.rstrip("/")
43+
templates.env.globals["base_url"] = Settings().app.base_url.rstrip("/") # pyright: ignore[reportArgumentType]
4444

4545
with open("CHANGELOG.md", "r") as file:
4646
changelog_content = file.read()
47-
templates.env.globals["changelog"] = markdown.markdown(changelog_content)
47+
templates.env.globals["changelog"] = markdown.markdown(changelog_content) # pyright: ignore[reportArgumentType]
4848

4949

5050
templates.env.add_extension(JinjaX)
51-
catalog = Catalog(jinja_env=templates.env) # pyright: ignore[reportUnknownArgumentType]
51+
catalog = Catalog(jinja_env=templates.env)
5252
catalog.add_folder("templates/components")
5353
catalog.add_folder("templates/pages")
5454
catalog.add_folder("templates/layouts")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "AudioBookRequest"
3-
version = "1.10.4"
3+
version = "1.10.3"
44
requires-python = ">= 3.14"
55
readme = "README.md"
66
dependencies = [

0 commit comments

Comments
 (0)