diff options
Diffstat (limited to 'searx/engines/google_scholar.py')
| -rw-r--r-- | searx/engines/google_scholar.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/searx/engines/google_scholar.py b/searx/engines/google_scholar.py index 481cce5dc..5420a5415 100644 --- a/searx/engines/google_scholar.py +++ b/searx/engines/google_scholar.py @@ -7,9 +7,6 @@ can make use of the :ref:`google API` to assemble the arguments of the GET request. """ -from typing import TYPE_CHECKING -from typing import Optional - from urllib.parse import urlencode from datetime import datetime from lxml import html @@ -28,14 +25,6 @@ from searx.engines.google import ( get_google_info, time_range_dict, ) -from searx.enginelib.traits import EngineTraits - -if TYPE_CHECKING: - import logging - - logger: logging.Logger - -traits: EngineTraits # about about = { @@ -115,7 +104,7 @@ def request(query, params): return params -def parse_gs_a(text: Optional[str]): +def parse_gs_a(text: str | None): """Parse the text written in green. Possible formats: |