diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2024-10-17 21:17:26 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-10-29 13:50:38 +0100 |
| commit | 3e5621e1af0e7540d342f395f1a8a26a8d19ad53 (patch) | |
| tree | f2e7be697a1818ef5416c8a8fd0a24eb87bc551e /searx/favicons/cache.py | |
| parent | e392892578a881dc8ac500e6e277bd516702b140 (diff) | |
[refactor] replace pydantic by msgspec
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
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" |