File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 11import time
2- from abc import ABC
32from typing import overload
43
54from 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
Original file line number Diff line number Diff line change @@ -35,20 +35,20 @@ def _to_js_string(val: str | int | float) -> str:
3535# filters
3636templates .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
4545with 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
5050templates .env .add_extension (JinjaX )
51- catalog = Catalog (jinja_env = templates .env ) # pyright: ignore[reportUnknownArgumentType]
51+ catalog = Catalog (jinja_env = templates .env )
5252catalog .add_folder ("templates/components" )
5353catalog .add_folder ("templates/pages" )
5454catalog .add_folder ("templates/layouts" )
You can’t perform that action at this time.
0 commit comments