mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	Merge pull request #1133 from searxng/dependabot/pip/master/typing-extensions-4.2.0
Bump typing-extensions from 4.1.1 to 4.2.0
This commit is contained in:
		
						commit
						52e662baec
					
				
					 3 changed files with 3 additions and 2 deletions
				
			
		
							
								
								
									
										1
									
								
								manage
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								manage
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -702,6 +702,7 @@ test.pyright() {
 | 
			
		|||
    pyenv.cmd npx --no-install pyright -p pyrightconfig-ci.json \
 | 
			
		||||
        | grep -v ".py$" \
 | 
			
		||||
        | grep -v '/engines/.*.py.* - warning: "logger" is not defined'\
 | 
			
		||||
        | grep -v '/plugins/.*.py.* - error: "logger" is not defined'\
 | 
			
		||||
        | grep -v '/engines/.*.py.* - warning: "supported_languages" is not defined' \
 | 
			
		||||
        | grep -v '/engines/.*.py.* - warning: "language_aliases" is not defined'
 | 
			
		||||
    dump_return $?
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -15,4 +15,4 @@ langdetect==1.0.9
 | 
			
		|||
setproctitle==1.2.3
 | 
			
		||||
redis==4.2.2
 | 
			
		||||
markdown-it-py==2.1.0
 | 
			
		||||
typing_extensions==4.1.1
 | 
			
		||||
typing_extensions==4.2.0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue