annotate this with the type
This commit is contained in:
parent
c636856d92
commit
307ebff3b3
|
@ -67,6 +67,7 @@ get_season = _base_get("", "season")
|
||||||
# get_episode :: Int -> Int -> IO Episode
|
# get_episode :: Int -> Int -> IO Episode
|
||||||
get_episode = _base_get("", "season", "episode")
|
get_episode = _base_get("", "season", "episode")
|
||||||
|
|
||||||
|
# search :: String -> IO [Episode]
|
||||||
def search(query):
|
def search(query):
|
||||||
params = {"q": query}
|
params = {"q": query}
|
||||||
r = requests.get(API_ENDPOINT + "/search", params=params)
|
r = requests.get(API_ENDPOINT + "/search", params=params)
|
||||||
|
|
Loading…
Reference in New Issue