Add missing type annotations to api methods

Add "__*" to .gitignore, to ignore temporary files
This commit is contained in:
Peder Bergebakken Sundt 2018-03-04 15:10:14 +01:00
parent e4096cb97c
commit 98d67c0444
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/config.py /config.py
__pycache__/ __pycache__/
*.pyc *.pyc
__*

View File

@ -78,11 +78,11 @@ def get_playback_pos():
return f"time" return f"time"
@request_post @request_post
def seek_absolute(pos): def seek_absolute(pos:float):
args = urlencode(locals()) args = urlencode(locals())
return f"time?{args}", None return f"time?{args}", None
@request_post @request_post
def seek_percent(percent): def seek_percent(percent:int):
args = urlencode(locals()) args = urlencode(locals())
return f"time?{args}", None return f"time?{args}", None