mypy: Assert Zulip.[api_key|email] are not None, satisfying use in Zephyr.
This commit is contained in:
		
							parent
							
								
									aa718da3e1
								
							
						
					
					
						commit
						afee6d706f
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -337,6 +337,7 @@ class Client(object): | |||
|             raise RuntimeError("api_key or email not specified and file %s does not exist" | ||||
|                                % (config_file,)) | ||||
| 
 | ||||
|         assert(api_key is not None and email is not None) | ||||
|         self.api_key = api_key | ||||
|         self.email = email | ||||
|         self.verbose = verbose | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 neiljp (Neil Pilgrim)
						neiljp (Neil Pilgrim)