mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add missing type hints to methods
This commit is contained in:
@@ -32,13 +32,13 @@ class TimeDisplay(Static):
|
|||||||
self.start_time = monotonic()
|
self.start_time = monotonic()
|
||||||
self.update_timer.resume()
|
self.update_timer.resume()
|
||||||
|
|
||||||
def stop(self):
|
def stop(self) -> None:
|
||||||
"""Method to stop the time display updating."""
|
"""Method to stop the time display updating."""
|
||||||
self.update_timer.pause()
|
self.update_timer.pause()
|
||||||
self.total += monotonic() - self.start_time
|
self.total += monotonic() - self.start_time
|
||||||
self.time = self.total
|
self.time = self.total
|
||||||
|
|
||||||
def reset(self):
|
def reset(self) -> None:
|
||||||
"""Method to reset the time display to zero."""
|
"""Method to reset the time display to zero."""
|
||||||
self.total = 0
|
self.total = 0
|
||||||
self.time = 0
|
self.time = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user