mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	mypy: Add backoff-stubs.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						 Tim Abbott
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							09564e95ac
						
					
				
				
					commit
					05124737f7
				
			| @@ -272,7 +272,12 @@ def send_email( | ||||
|         raise EmailNotDeliveredException | ||||
|  | ||||
|  | ||||
| @backoff.on_exception(backoff.expo, OSError, max_tries=MAX_CONNECTION_TRIES, logger=None) | ||||
| @backoff.on_exception( | ||||
|     backoff.expo, | ||||
|     OSError, | ||||
|     max_tries=MAX_CONNECTION_TRIES, | ||||
|     logger=None,  # type: ignore[arg-type] # https://github.com/gleb-chipiga/backoff-stubs/pull/2 | ||||
| ) | ||||
| def initialize_connection(connection: Optional[BaseEmailBackend] = None) -> BaseEmailBackend: | ||||
|     if not connection: | ||||
|         connection = get_connection() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user