more typing work

This commit is contained in:
Kovid Goyal
2020-03-13 21:41:07 +05:30
parent 626a96e20f
commit a348f64833
6 changed files with 123 additions and 63 deletions

View File

@@ -17,7 +17,7 @@ from .utils import log_error, open_url
CHANGELOG_URL = 'https://sw.kovidgoyal.net/kitty/changelog.html'
RELEASED_VERSION_URL = 'https://sw.kovidgoyal.net/kitty/current-version.txt'
CHECK_INTERVAL = 24 * 60 * 60
CHECK_INTERVAL = 24 * 60 * 60.
class Notification(NamedTuple):
@@ -123,6 +123,6 @@ def update_check(timer_id: Optional[int] = None) -> bool:
return True
def run_update_check(interval: int = CHECK_INTERVAL) -> None:
def run_update_check(interval: float = CHECK_INTERVAL) -> None:
if update_check():
add_timer(update_check, interval)