From 3aaa75efbf9aedf7754135bf024773264571746a Mon Sep 17 00:00:00 2001 From: foamyguy Date: Fri, 24 Feb 2023 17:24:48 -0600 Subject: [PATCH] add star arg and docstring for name --- adafruit_led_animation/animation/comet.py | 2 ++ adafruit_led_animation/animation/multicolor_comet.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/adafruit_led_animation/animation/comet.py b/adafruit_led_animation/animation/comet.py index e562e49..2455a65 100644 --- a/adafruit_led_animation/animation/comet.py +++ b/adafruit_led_animation/animation/comet.py @@ -42,6 +42,8 @@ class Comet(Animation): maximum of the length of the ``pixel_object``. :param bool reverse: Animates the comet in the reverse order. Defaults to ``False``. :param bool bounce: Comet will bounce back and forth. Defaults to ``True``. + :param Optional[string] name: A human-readable name for the Animation. + Used by the to string function. :param bool ring: Ring mode. Defaults to ``False``. """ diff --git a/adafruit_led_animation/animation/multicolor_comet.py b/adafruit_led_animation/animation/multicolor_comet.py index e127048..a71a2d4 100644 --- a/adafruit_led_animation/animation/multicolor_comet.py +++ b/adafruit_led_animation/animation/multicolor_comet.py @@ -42,6 +42,8 @@ class MulticolorComet(Comet): maximum of the length of the ``pixel_object``. :param bool reverse: Animates the comet in the reverse order. Defaults to ``False``. :param bool bounce: Comet will bounce back and forth. Defaults to ``True``. + :param Optional[string] name: A human-readable name for the Animation. + Used by the to string function. :param bool ring: Ring mode. Defaults to ``False``. :param bool off_pixels: Turn pixels off after the animation passes them. Defaults to ``True``. Setting to False will result in all pixels not currently in the comet @@ -54,6 +56,7 @@ class MulticolorComet(Comet): pixel_object, speed, colors, + *, tail_length=0, reverse=False, bounce=False,