mypy: Add client_cert assertion & amend annotation in Zulip API.
This commit is contained in:
		
							parent
							
								
									13bf6f7262
								
							
						
					
					
						commit
						d26e44ebb2
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -397,7 +397,8 @@ class Client(object):
 | 
			
		|||
 | 
			
		||||
        # Build a client cert object for requests
 | 
			
		||||
        if self.client_cert_key is not None:
 | 
			
		||||
            client_cert = (self.client_cert, self.client_cert_key)  # type: Union[str, Tuple[str, str]]
 | 
			
		||||
            assert(self.client_cert is not None)  # Otherwise RuntimeError near end of __init__
 | 
			
		||||
            client_cert = (self.client_cert, self.client_cert_key)  # type: Union[None, str, Tuple[str, str]]
 | 
			
		||||
        else:
 | 
			
		||||
            client_cert = self.client_cert
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue