From f31a3a2053b07b834c5143bd6be4eaf05c1a014d Mon Sep 17 00:00:00 2001 From: Bnyro Date: Wed, 9 Oct 2024 11:59:31 +0200 Subject: [chore] *: fix typos detected by typos-cli --- searx/botdetection/config.py | 6 +++--- searx/botdetection/link_token.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'searx/botdetection') diff --git a/searx/botdetection/config.py b/searx/botdetection/config.py index 2a982ba64..274be77df 100644 --- a/searx/botdetection/config.py +++ b/searx/botdetection/config.py @@ -22,7 +22,7 @@ log = logging.getLogger(__name__) class FALSE: - """Class of ``False`` singelton""" + """Class of ``False`` singleton""" # pylint: disable=multiple-statements def __init__(self, msg): @@ -81,7 +81,7 @@ class Config: return cfg def __init__(self, cfg_schema: typing.Dict, deprecated: typing.Dict[str, str]): - """Construtor of class Config. + """Constructor of class Config. :param cfg_schema: Schema of the configuration :param deprecated: dictionary that maps deprecated configuration names to a messages @@ -159,7 +159,7 @@ class Config: return pathlib.Path(str(val)) def pyobj(self, name, default=UNSET): - """Get python object refered by full qualiffied name (FQN) in the config + """Get python object referred by full qualiffied name (FQN) in the config string.""" fqn = self.get(name, default) diff --git a/searx/botdetection/link_token.py b/searx/botdetection/link_token.py index 8f8e9839c..4273e22c5 100644 --- a/searx/botdetection/link_token.py +++ b/searx/botdetection/link_token.py @@ -55,10 +55,10 @@ from ._helpers import ( ) TOKEN_LIVE_TIME = 600 -"""Livetime (sec) of limiter's CSS token.""" +"""Lifetime (sec) of limiter's CSS token.""" PING_LIVE_TIME = 3600 -"""Livetime (sec) of the ping-key from a client (request)""" +"""Lifetime (sec) of the ping-key from a client (request)""" PING_KEY = 'SearXNG_limiter.ping' """Prefix of all ping-keys generated by :py:obj:`get_ping_key`""" -- cgit v1.2.3