mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-11-04 18:07:44 +03:00 
			
		
		
		
	Add missing docstrings
This commit is contained in:
		
							parent
							
								
									f8255e820d
								
							
						
					
					
						commit
						6d4fd9fb03
					
				| 
						 | 
					@ -12,6 +12,7 @@ class GiphyClient:
 | 
				
			||||||
        self._timeout = ClientTimeout(timeout)
 | 
					        self._timeout = ClientTimeout(timeout)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    async def search(self, query, limit):
 | 
					    async def search(self, query, limit):
 | 
				
			||||||
 | 
					        """Make search API call and return result."""
 | 
				
			||||||
        if not query:
 | 
					        if not query:
 | 
				
			||||||
            return []
 | 
					            return []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,6 +9,7 @@ class SearchService:
 | 
				
			||||||
        self._giphy_client = giphy_client
 | 
					        self._giphy_client = giphy_client
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    async def search(self, query, limit):
 | 
					    async def search(self, query, limit):
 | 
				
			||||||
 | 
					        """Search for gifs and return formatted data."""
 | 
				
			||||||
        if not query:
 | 
					        if not query:
 | 
				
			||||||
            return []
 | 
					            return []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user