fix lint
This commit is contained in:
parent
50bca2261c
commit
96ed05c14b
2 changed files with 2 additions and 2 deletions
|
|
@ -62,7 +62,7 @@ class Comet(Animation):
|
||||||
:param bool bounce: Comet will bounce back and forth. Defaults to ``True``.
|
:param bool bounce: Comet will bounce back and forth. Defaults to ``True``.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# pylint: disable=too-many-arguments
|
# pylint: disable=too-many-arguments,too-many-instance-attributes
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
pixel_object,
|
pixel_object,
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ def calculate_intensity(color, intensity=1.0):
|
||||||
int(color[1] * intensity),
|
int(color[1] * intensity),
|
||||||
int(color[2] * intensity),
|
int(color[2] * intensity),
|
||||||
)
|
)
|
||||||
elif len(color) == 4 and isinstance(color[3], float):
|
if len(color) == 4 and isinstance(color[3], float):
|
||||||
return (
|
return (
|
||||||
int(color[0] * intensity),
|
int(color[0] * intensity),
|
||||||
int(color[1] * intensity),
|
int(color[1] * intensity),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue