From aea5905179637114fa30a164a1566ccce58f4b34 Mon Sep 17 00:00:00 2001 From: chillerno1 Date: Mon, 28 Nov 2022 11:40:27 +1100 Subject: [PATCH] Add missing type hints to methods --- docs/examples/tutorial/stopwatch06.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples/tutorial/stopwatch06.py b/docs/examples/tutorial/stopwatch06.py index e446d9798..84e862f98 100644 --- a/docs/examples/tutorial/stopwatch06.py +++ b/docs/examples/tutorial/stopwatch06.py @@ -32,13 +32,13 @@ class TimeDisplay(Static): self.start_time = monotonic() self.update_timer.resume() - def stop(self): + def stop(self) -> None: """Method to stop the time display updating.""" self.update_timer.pause() self.total += monotonic() - self.start_time self.time = self.total - def reset(self): + def reset(self) -> None: """Method to reset the time display to zero.""" self.total = 0 self.time = 0