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
__init__.py Fix: use sys.modules.copy() to avoid RuntimeError 2 years ago
ahmia.py
apkmirror.py
archlinux.py
artic.py
arxiv.py
bandcamp.py [mod] bandcamp & genius: in result set img_src instead thumbnail 3 years ago
base.py
bing.py bing.py: resolve bing.com/ck/a redirections 2 years ago
bing_images.py
bing_news.py
bing_videos.py
btdigg.py
command.py
core.py
currency_convert.py [pylint] engines/currency_convert.py 3 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 3 years ago
demo_offline.py
demo_online.py [fix] demo_online.py - fixed typo 2 years ago
deviantart.py
dictzone.py
digbt.py
docker_hub.py
doku.py
duckduckgo.py
duckduckgo_definitions.py
duckduckgo_images.py
duden.py
dummy-offline.py
dummy.py
ebay.py [mod] Pass desired ebay domain in settings 2 years ago
elasticsearch.py
emojipedia.py [fix] emojipedia - update XPath to be relative 2 years ago
fdroid.py
flickr.py
flickr_noapi.py
framalibre.py
freesound.py [mod] result_templates/default.html replace embedded HTML by data_src audio_src 3 years ago
frinkiac.py
genius.py [mod] bandcamp & genius: in result set img_src instead thumbnail 3 years ago
gentoo.py
gigablast.py
github.py
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
ina.py
invidious.py [mod] templates: rename field for <iframe> URL to iframe_src 3 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
lingva.py [mod] Adds Lingva translate engine 2 years ago
loc.py
mediathekviewweb.py [fix] engine mediathekviewweb: replace http links by https 3 years ago
mediawiki.py
meilisearch.py
mixcloud.py [mod] add artwork to mixcloud & soundcloud engines 3 years ago
mongodb.py [fix] pyright repported errors 2 years ago
mysql_server.py [fix] pyright repported errors 2 years ago
nyaa.py
opensemantic.py
openstreetmap.py [fix] engines/openstreetmap.py typo: user_langage --> user_language 2 years ago
openverse.py
pdbe.py
peertube.py [mod] templates: rename field for <iframe> URL to iframe_src 3 years ago
petal_images.py [enh] Initial Petalsearch Images support 2 years ago
photon.py
piratebay.py
postgresql.py [fix] pyright repported errors 2 years ago
pubmed.py
qwant.py
recoll.py
reddit.py
redis_server.py
rumble.py
scanr_structures.py
searchcode_code.py
searx_engine.py
semantic_scholar.py [fix] engine: Semantic Scholar (Science) // rework & fix 3 years ago
sepiasearch.py [mod] templates: rename field for <iframe> URL to iframe_src 3 years ago
seznam.py
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 3 years ago
solr.py
soundcloud.py [mod] add artwork to mixcloud & soundcloud engines 3 years ago
spotify.py [mod] templates: rename field for <iframe> URL to iframe_src 3 years ago
springer.py
sqlite.py
stackexchange.py
startpage.py fix startpage: update XPath in _fetch_supported_languages 3 years ago
tineye.py [fix] engine tineye: handle 422 response of not supported img format 2 years ago
tokyotoshokan.py
torznab.py
translated.py
unsplash.py
vimeo.py [mod] templates: rename field for <iframe> URL to iframe_src 3 years ago
wikidata.py Wikidata engine: ignore dummy entities 2 years ago
wikipedia.py
wolframalpha_api.py change "Wolfram|Alpha" to "Wolfram Alpha" in search results 2 years ago
wolframalpha_noapi.py
wordnik.py
www1x.py
xpath.py [fix[ Update only cookies/headers 2 years ago
yacy.py
yahoo.py [fix] FutureWarning from lxml 2 years ago
yahoo_news.py
youtube_api.py [mod] templates: rename field for <iframe> URL to iframe_src 3 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