mypy: Adjust zulip api slightly, to pass with strict-optional.
This commit is contained in:
		
							parent
							
								
									fc460dc12b
								
							
						
					
					
						commit
						9df922e7fa
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -571,7 +571,8 @@ class Client(object):
 | 
			
		|||
        # type: (str, str, Dict[str, Any], bool, List[IO[Any]]) -> Dict[str, Any]
 | 
			
		||||
        if request is None:
 | 
			
		||||
            request = dict()
 | 
			
		||||
        return self.do_api_query(request, API_VERSTRING + url, method=method,
 | 
			
		||||
        versioned_url = API_VERSTRING + (url if url is not None else "")
 | 
			
		||||
        return self.do_api_query(request, versioned_url, method=method,
 | 
			
		||||
                                 longpolling=longpolling, files=files)
 | 
			
		||||
 | 
			
		||||
    def call_on_each_event(self, callback, event_types=None, narrow=None):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue