diff options
author | neodarz <neodarz@neodarz.net> | 2020-04-11 20:54:31 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2020-04-11 20:54:31 +0200 |
commit | c0bb3d43f9c51d92cdddfee2f4cbf6139fd4f9a5 (patch) | |
tree | 7879ad52a006a678db2b8d2f92edcf8df664e640 /pyfunkwhale/client.py | |
parent | e1639c0f20d56d05517a6e16aca768094b5e77ba (diff) | |
download | pyfunkwhale-c0bb3d43f9c51d92cdddfee2f4cbf6139fd4f9a5.tar.xz pyfunkwhale-c0bb3d43f9c51d92cdddfee2f4cbf6139fd4f9a5.zip |
Add more type hints
Diffstat (limited to 'pyfunkwhale/client.py')
-rw-r--r-- | pyfunkwhale/client.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pyfunkwhale/client.py b/pyfunkwhale/client.py index 2221a35..49df688 100644 --- a/pyfunkwhale/client.py +++ b/pyfunkwhale/client.py @@ -4,6 +4,7 @@ import json from time import time from requests_oauthlib import OAuth2Session +from requests.models import Response from pyfunkwhale.utils import read_file, write_file @@ -70,7 +71,8 @@ class Client(object): client_secret=self.client_secret) write_file(self.token_filename, self.token) - def call(self, endpoint, method, params=None, data=None): + def call(self, endpoint: str, method: str, params: dict = None, + data: dict = None) -> Response: """ Call the API |