@@ -336,7 +336,7 @@ async def interpolate_scalar(self, start, end, *, duration, step=0, transition=_
336
336
337
337
interpolate = interpolate_scalar
338
338
'''
339
- An alias for :meth:`interpolate_scalar`.
339
+ An alias of :meth:`interpolate_scalar`.
340
340
341
341
.. versionadded:: 0.5.2
342
342
'''
@@ -380,7 +380,7 @@ async def interpolate_sequence(self, start, end, *, duration, step=0, transition
380
380
381
381
interpolate_seq = interpolate_sequence
382
382
'''
383
- An alias for :meth:`interpolate_sequence`.
383
+ An alias of :meth:`interpolate_sequence`.
384
384
'''
385
385
386
386
def _update (setattr , zip , min , obj , duration , transition , anim_params , task , p_time , dt ):
@@ -440,14 +440,24 @@ def _anim_attrs(
440
440
441
441
def anim_attrs (self , obj , * , duration , step = 0 , transition = _linear , ** animated_properties ) -> Awaitable :
442
442
'''
443
- Animates attibutes of any object.
443
+ Animates attributes of any object.
444
444
445
445
.. code-block::
446
446
447
447
import types
448
448
449
449
obj = types.SimpleNamespace(x=0, size=(200, 300))
450
450
await clock.anim_attrs(obj, x=100, size=(400, 400), duration=2)
451
+
452
+ Only numbers and flat numeric sequences are supported.
453
+ Nested sequences and dictionaries are not supported.
454
+
455
+ .. code-block::
456
+
457
+ await anim_attrs(obj, dictionary={'x': 1.}) # not supported
458
+ await anim_attrs(obj, nested_sequence=[[10, 20, ]]) # not supported
459
+
460
+ await anim_attrs(obj, number=1, flat_sequence=(100, 200)) # OK
451
461
'''
452
462
return self ._anim_attrs (obj , duration , step , transition , animated_properties )
453
463
0 commit comments