From 98d67c04440ce68588b267121bfcea7f3ea2351e Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sun, 4 Mar 2018 15:10:14 +0100 Subject: [PATCH] Add missing type annotations to api methods Add "__*" to .gitignore, to ignore temporary files --- .gitignore | 1 + grzegorz_clients/api.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0fc8e12..5a1e101 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /config.py __pycache__/ *.pyc +__* diff --git a/grzegorz_clients/api.py b/grzegorz_clients/api.py index 4702c41..158fc46 100644 --- a/grzegorz_clients/api.py +++ b/grzegorz_clients/api.py @@ -78,11 +78,11 @@ def get_playback_pos(): return f"time" @request_post -def seek_absolute(pos): +def seek_absolute(pos:float): args = urlencode(locals()) return f"time?{args}", None @request_post -def seek_percent(percent): +def seek_percent(percent:int): args = urlencode(locals()) return f"time?{args}", None