annotate this with the type

This commit is contained in:
Christine Dodrill 2015-08-09 14:39:59 -07:00
parent c636856d92
commit 307ebff3b3
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ get_season = _base_get("", "season")
# get_episode :: Int -> Int -> IO Episode
get_episode = _base_get("", "season", "episode")
# search :: String -> IO [Episode]
def search(query):
params = {"q": query}
r = requests.get(API_ENDPOINT + "/search", params=params)