misc: improve mypy health

This commit is contained in:
rr-
2019-01-04 20:13:52 +01:00
parent 3d8034b285
commit 021d7eb602
12 changed files with 45 additions and 37 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class Roster:
self.path.rename(old_path)
tmp_path.rename(self.path)
def save_periodically(self):
def save_periodically(self) -> None:
if (datetime.now() - self._last_save).total_seconds() >= 300:
logging.info("Saving...")
self.save()