You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
searxng/searx/engines
Alexandre Flament 2babf59adc [fix] pyright repported errors
The errors make pyright usage useless since a new error won't be seen [1].

[1] https://github.com/searxng/searxng/pull/1569

```
  searx/compat.py:11:27 - error: Expression of type "Type[cached_property[_T@cached_property]]" cannot be assigned to declared type "Type[cached_property]"
    "Type[cached_property[_T@cached_property]]" is incompatible with "Type[cached_property]"
    Type "Type[cached_property[_T@cached_property]]" cannot be assigned to type "Type[cached_property]" (reportGeneralTypeIssues)
  searx/utils.py:69:36 - error: Expression of type "None" cannot be assigned to parameter of type "str"
    Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
  searx/utils.py:573:85 - error: Expression of type "None" cannot be assigned to parameter of type "int"
    Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
  searx/webapp.py:1306:22 - error: Argument of type "str" cannot be assigned to parameter "__a" of type "BytesPath" in function "join"
    Type "str" cannot be assigned to type "BytesPath"
      "str" is incompatible with "bytes"
      "str" is incompatible with protocol "PathLike[bytes]"
        "__fspath__" is not present (reportGeneralTypeIssues)
  searx/webapp.py:1306:68 - error: Argument of type "Literal['themes']" cannot be assigned to parameter "paths" of type "BytesPath" in function "join"
    Type "Literal['themes']" cannot be assigned to type "BytesPath"
      "Literal['themes']" is incompatible with "bytes"
      "Literal['themes']" is incompatible with protocol "PathLike[bytes]"
        "__fspath__" is not present (reportGeneralTypeIssues)
  searx/webapp.py:1306:78 - error: Argument of type "str | Any | None" cannot be assigned to parameter "paths" of type "BytesPath" in function "join"
    Type "str | Any | None" cannot be assigned to type "BytesPath"
      Type "str" cannot be assigned to type "BytesPath"
        "str" is incompatible with "bytes"
        "str" is incompatible with protocol "PathLike[bytes]"
          "__fspath__" is not present (reportGeneralTypeIssues)
  searx/webapp.py:1306:85 - error: Argument of type "Literal['img']" cannot be assigned to parameter "paths" of type "BytesPath" in function "join"
    Type "Literal['img']" cannot be assigned to type "BytesPath"
      "Literal['img']" is incompatible with "bytes"
      "Literal['img']" is incompatible with protocol "PathLike[bytes]"
        "__fspath__" is not present (reportGeneralTypeIssues)
  searx/engines/mongodb.py:8:6 - warning: Import "pymongo" could not be resolved (reportMissingImports)
  searx/engines/mysql_server.py:9:8 - warning: Import "mysql.connector" could not be resolved (reportMissingImports)
  searx/engines/postgresql.py:9:8 - warning: Import "psycopg2" could not be resolved from source (reportMissingModuleSource)
  searx/engines/xpath.py:187:28 - warning: "categories" is not defined (reportUndefinedVariable)
  searx/search/__init__.py:184:82 - warning: "flask" is not defined (reportUndefinedVariable)
  searx/search/checker/background.py:19:26 - error: Type of "schedule" is partially unknown
    Type of "schedule" is "(delay: Any, func: Any, *args: Any) -> Literal[True]" (reportUnknownVariableType)
  searx/shared/__init__.py:8:12 - warning: Import "uwsgi" could not be resolved (reportMissingImports)
  searx/shared/shared_uwsgi.py:5:8 - warning: Import "uwsgi" could not be resolved (reportMissingImports)
```
2 years ago
..
1337x.py [format.python] initial formatting of the python code 2 years ago
__init__.py Fix: use sys.modules.copy() to avoid RuntimeError 2 years ago
ahmia.py [format.python] initial formatting of the python code 2 years ago
apkmirror.py [enh] add more categories 2 years ago
archlinux.py [enh] add more categories 2 years ago
artic.py [format.python] initial formatting of the python code 2 years ago
arxiv.py [format.python] initial formatting of the python code 2 years ago
bandcamp.py [mod] bandcamp & genius: in result set img_src instead thumbnail 2 years ago
base.py [format.python] initial formatting of the python code 2 years ago
bing.py bing.py: resolve bing.com/ck/a redirections 2 years ago
bing_images.py [enh] add more categories 2 years ago
bing_news.py [format.python] initial formatting of the python code 2 years ago
bing_videos.py [enh] add more categories 2 years ago
btdigg.py [format.python] initial formatting of the python code 2 years ago
command.py [format.python] initial formatting of the python code 2 years ago
core.py [format.python] initial formatting of the python code 2 years ago
currency_convert.py [pylint] engines/currency_convert.py 2 years ago
dailymotion.py [format.python] based on bugfix in 9ed626130 2 years ago
deezer.py [mod] templates: rename field for <iframe> URL to iframe_src 2 years ago
demo_offline.py [format.python] initial formatting of the python code 2 years ago
demo_online.py [fix] demo_online.py - fixed typo 2 years ago
deviantart.py [format.python] initial formatting of the python code 2 years ago
dictzone.py [format.python] initial formatting of the python code 2 years ago
digbt.py [format.python] initial formatting of the python code 2 years ago
docker_hub.py [format.python] initial formatting of the python code 2 years ago
doku.py [fix] issues reported by pylint 2 years ago
duckduckgo.py [enh] add more categories 2 years ago
duckduckgo_definitions.py [fix] issues reported by pylint 2 years ago
duckduckgo_images.py [enh] add more categories 2 years ago
duden.py [enh] move dictionaries, Erowid & IMDb out of general category 2 years ago
dummy-offline.py [format.python] initial formatting of the python code 2 years ago
dummy.py [enh] engines: add about variable 3 years ago
ebay.py [mod] Pass desired ebay domain in settings 2 years ago
elasticsearch.py [format.python] initial formatting of the python code 2 years ago
emojipedia.py [fix] emojipedia - update XPath to be relative 2 years ago
fdroid.py [enh] add more categories 2 years ago
flickr.py [format.python] initial formatting of the python code 2 years ago
flickr_noapi.py [format.python] initial formatting of the python code 2 years ago
framalibre.py [format.python] initial formatting of the python code 2 years ago
freesound.py [mod] result_templates/default.html replace embedded HTML by data_src audio_src 2 years ago
frinkiac.py [format.python] initial formatting of the python code 2 years ago
genius.py [mod] bandcamp & genius: in result set img_src instead thumbnail 2 years ago
gentoo.py [enh] add more categories 2 years ago
gigablast.py [enh] add more categories 2 years ago
github.py [enh] add more categories 2 years ago
google.py Revert "Quick fix for google engine for EU countries" 2 years ago
google_images.py [fix] google & youtube - set EU consent cookie 2 years ago
google_news.py [fix] google & youtube - set EU consent cookie 2 years ago
google_play_apps.py [fix] google & youtube - set EU consent cookie 2 years ago
google_scholar.py [fix] google & youtube - set EU consent cookie 2 years ago
google_videos.py [fix] google & youtube - set EU consent cookie 2 years ago
imdb.py [enh] move dictionaries, Erowid & IMDb out of general category 2 years ago
ina.py [fix] ina engine 2 years ago
invidious.py [mod] templates: rename field for <iframe> URL to iframe_src 2 years ago
jisho.py [format.python] based on bugfix in 9ed626130 2 years ago
json_engine.py [enh] Initial no paging support for Yep.com 2 years ago
kickass.py [format.python] initial formatting of the python code 2 years ago
lingva.py [mod] Adds Lingva translate engine 2 years ago
loc.py [format.python] initial formatting of the python code 2 years ago
mediathekviewweb.py [fix] engine mediathekviewweb: replace http links by https 2 years ago
mediawiki.py [format.python] initial formatting of the python code 2 years ago
meilisearch.py [pylint] engines: drop no longer needed 'missing-function-docstring' 3 years ago
mixcloud.py [mod] add artwork to mixcloud & soundcloud engines 2 years ago
mongodb.py [fix] pyright repported errors 2 years ago
mysql_server.py [fix] pyright repported errors 2 years ago
nyaa.py [format.python] initial formatting of the python code 2 years ago
opensemantic.py [enh] engines: add about variable 3 years ago
openstreetmap.py [fix] engines/openstreetmap.py typo: user_langage --> user_language 2 years ago
openverse.py [fix] ccengine engine - avoid unwanted redirects 2 years ago
pdbe.py [format.python] initial formatting of the python code 2 years ago
peertube.py [mod] templates: rename field for <iframe> URL to iframe_src 2 years ago
petal_images.py [enh] Initial Petalsearch Images support 2 years ago
photon.py [format.python] initial formatting of the python code 2 years ago
piratebay.py [format.python] initial formatting of the python code 2 years ago
postgresql.py [fix] pyright repported errors 2 years ago
pubmed.py [format.python] initial formatting of the python code 2 years ago
qwant.py [format.python] initial formatting of the python code 2 years ago
recoll.py [format.python] initial formatting of the python code 2 years ago
reddit.py [format.python] initial formatting of the python code 2 years ago
redis_server.py [format.python] initial formatting of the python code 2 years ago
rumble.py [format.python] initial formatting of the python code 2 years ago
scanr_structures.py [format.python] initial formatting of the python code 2 years ago
searchcode_code.py [format.python] initial formatting of the python code 2 years ago
searx_engine.py reference docs.searxng.org 2 years ago
semantic_scholar.py [fix] engine: Semantic Scholar (Science) // rework & fix 2 years ago
sepiasearch.py [mod] templates: rename field for <iframe> URL to iframe_src 2 years ago
seznam.py [enh] add more categories 2 years ago
sjp.py [fix] sjp engine - convert enginename to a latin1 compliance name 2 years ago
solidtorrents.py [fix] solidtorrents engine: store random bas_url in param 2 years ago
solr.py [format.python] initial formatting of the python code 2 years ago
soundcloud.py [mod] add artwork to mixcloud & soundcloud engines 2 years ago
spotify.py [mod] templates: rename field for <iframe> URL to iframe_src 2 years ago
springer.py [format.python] initial formatting of the python code 2 years ago
sqlite.py [format.python] initial formatting of the python code 2 years ago
stackexchange.py [format.python] initial formatting of the python code 2 years ago
startpage.py fix startpage: update XPath in _fetch_supported_languages 2 years ago
tineye.py [fix] engine tineye: handle 422 response of not supported img format 2 years ago
tokyotoshokan.py [format.python] initial formatting of the python code 2 years ago
torznab.py [format.python] initial formatting of the python code 2 years ago
translated.py [enh] move dictionaries, Erowid & IMDb out of general category 2 years ago
unsplash.py [format.python] initial formatting of the python code 2 years ago
vimeo.py [mod] templates: rename field for <iframe> URL to iframe_src 2 years ago
wikidata.py Wikidata engine: ignore dummy entities 2 years ago
wikipedia.py [format.python] initial formatting of the python code 2 years ago
wolframalpha_api.py change "Wolfram|Alpha" to "Wolfram Alpha" in search results 2 years ago
wolframalpha_noapi.py [format.python] initial formatting of the python code 2 years ago
wordnik.py [format.python] initial formatting of the python code 2 years ago
www1x.py [fix] 1x engine 2 years ago
xpath.py [fix[ Update only cookies/headers 2 years ago
yacy.py [format.python] initial formatting of the python code 2 years ago
yahoo.py [fix] FutureWarning from lxml 2 years ago
yahoo_news.py [fix] issues reported by pylint 2 years ago
youtube_api.py [mod] templates: rename field for <iframe> URL to iframe_src 2 years ago
youtube_noapi.py [fix] google & youtube - set EU consent cookie 2 years ago
zlibrary.py [fix] engine z-zlibrary https URL 2 years ago