diff --git a/pyproject.toml b/pyproject.toml index 8433291..b2a2bb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "asyncgui-ext-clock" -version = "0.5.1" +version = "0.5.2.dev0" description = "An event scheduler for asyncgui programs" authors = ["Nattōsai Mitō "] license = "MIT" diff --git a/src/asyncgui_ext/clock.py b/src/asyncgui_ext/clock.py index 52b5b2b..fa71ced 100644 --- a/src/asyncgui_ext/clock.py +++ b/src/asyncgui_ext/clock.py @@ -336,6 +336,13 @@ async def interpolate_scalar(self, start, end, *, duration, step=0, transition=_ await self.sleep(0) yield transition(1.) * slope + start + interpolate = interpolate_scalar + ''' + An alias for :meth:`interpolate_scalar`. + + .. versionadded:: 0.5.2 + ''' + async def interpolate_sequence(self, start, end, *, duration, step=0, transition=_linear, output_type=tuple) -> AsyncIterator: ''' Same as :meth:`interpolate_scalar` except this one is for sequence type.