diff options
Diffstat (limited to 'searx/favicons/cache.py')
-rw-r--r-- | searx/favicons/cache.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/favicons/cache.py b/searx/favicons/cache.py index 4b8276154..c46eb5621 100644 --- a/searx/favicons/cache.py +++ b/searx/favicons/cache.py @@ -30,7 +30,7 @@ import tempfile import time import typer -from pydantic import BaseModel +import msgspec from searx import sqlitedb from searx import logger @@ -90,7 +90,7 @@ def init(cfg: "FaviconCacheConfig"): raise NotImplementedError(f"favicons db_type '{cfg.db_type}' is unknown") -class FaviconCacheConfig(BaseModel): +class FaviconCacheConfig(msgspec.Struct): # pylint: disable=too-few-public-methods """Configuration of the favicon cache.""" db_type: Literal["sqlite", "mem"] = "sqlite" |