diff options
Diffstat (limited to 'searx/query.py')
-rw-r--r-- | searx/query.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/query.py b/searx/query.py index ae68d0da2..aa4cb0bc9 100644 --- a/searx/query.py +++ b/searx/query.py @@ -1,6 +1,7 @@ # SPDX-License-Identifier: AGPL-3.0-or-later # pylint: disable=invalid-name, missing-module-docstring, missing-class-docstring +from __future__ import annotations from abc import abstractmethod, ABC import re @@ -258,7 +259,7 @@ class RawTextQuery: FeelingLuckyParser, # redirect to the first link in the results list ] - def __init__(self, query, disabled_engines): + def __init__(self, query: str, disabled_engines: list): assert isinstance(query, str) # input parameters self.query = query |