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
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
..
answerers [fix] issue reported by pylint 22.1.0 2 years ago
data Merge pull request #1580 from searxng/update_data_update_engine_descriptions.py 2 years ago
engines [fix] pyright repported errors 2 years ago
infopage Donation link: default value to searxng.org, can be hidden or custom 2 years ago
metrics [fix] prepare for pylint 2.14.0 2 years ago
network bing.py: resolve bing.com/ck/a redirections 2 years ago
plugins [mod] add tor_check plugin - convenient tor checking trough searxng 2 years ago
search [fix] pyright repported errors 2 years ago
shared [fix] pyright repported errors 2 years ago
static [build] /static 2 years ago
templates/simple [fix] preferences: missing option value 2 years ago
translations [translations] update from Weblate 2 years ago
__init__.py [format.python] initial formatting of the python code 2 years ago
autocomplete.py [format.python] based on bugfix in 9ed626130 2 years ago
babel_extract.py [mod] move category and names of constants to searx/searxng.msg 2 years ago
compat.py [fix] pyright repported errors 2 years ago
exceptions.py [pyright:strict] searx.search.checker.background 2 years ago
external_bang.py [fix] external bangs: don't overwrite Bangs in data trie 2 years ago
external_urls.py [format.python] initial formatting of the python code 2 years ago
flaskfix.py [format.python] initial formatting of the python code 2 years ago
languages.py [fix] add back missing languages & regions (followup of PR #1071) 2 years ago
locales.py locales.py: add support for Papiamento 2 years ago
preferences.py [fix] typo: add missing 'n' in center_aligment --> center_alignment 2 years ago
query.py [mod] add flags to the languages filter 2 years ago
redislib.py [mod] redislib - optimize LUA script registration. 2 years ago
results.py [simple theme] replace Image_layout.js with flexbox CS impl. 2 years ago
searxng.msg [mod] move category and names of constants to searx/searxng.msg 2 years ago
settings.yml [fix] sjp engine - convert enginename to a latin1 compliance name 2 years ago
settings_defaults.py Merge pull request #1428 from return42/fix-center_aligment 2 years ago
settings_loader.py [format.python] initial formatting of the python code 2 years ago
unixthreadname.py [format.python] initial formatting of the python code 2 years ago
utils.py [fix] pyright repported errors 2 years ago
version.py [fix] pyright repported errors 2 years ago
webadapter.py [fix] disabling all engines in a category makes the bang search in general 2 years ago
webapp.py [fix] pyright repported errors 2 years ago
webutils.py theme: remove __common__ 2 years ago