From 3e5621e1af0e7540d342f395f1a8a26a8d19ad53 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Thu, 17 Oct 2024 21:17:26 +0200 Subject: [refactor] replace pydantic by msgspec Signed-off-by: Markus Heiser --- searx/favicons/cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searx/favicons/cache.py') 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" -- cgit v1.2.3