docstrings

This commit is contained in:
Will McGugan
2022-02-09 11:23:38 +00:00
parent 08127f2aeb
commit c7c032d60b

View File

@@ -127,15 +127,19 @@ class Animator:
)
async def start(self) -> None:
"""Start the animator task."""
self._timer.start()
async def stop(self) -> None:
"""Stop the animator task."""
try:
await self._timer.stop()
except asyncio.CancelledError:
pass
def bind(self, obj: object) -> BoundAnimator:
"""Bind the animator to a given objects."""
return BoundAnimator(self, obj)
def animate(