From cf644b413e3c143330bd857648ff6811feb5f1d0 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Fri, 22 Apr 2022 11:16:41 +0200 Subject: [test.pyright] suppress unneeded error & warning messages Signed-off-by: Markus Heiser --- searx/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/utils.py') diff --git a/searx/utils.py b/searx/utils.py index ffc9a39d6..abc330be2 100644 --- a/searx/utils.py +++ b/searx/utils.py @@ -372,7 +372,7 @@ def _get_lang_to_lc_dict(lang_list: List[str]) -> Dict[str, str]: # babel's get_global contains all sorts of miscellaneous locale and territory related data # see get_global in: https://github.com/python-babel/babel/blob/master/babel/core.py -def _get_from_babel(lang_code: str, key: str): +def _get_from_babel(lang_code: str, key): match = get_global(key).get(lang_code.replace('-', '_')) # for some keys, such as territory_aliases, match may be a list if isinstance(match, str): -- cgit v1.2.3