From 6ecd7a674b123d15099f570f2bfffeaf836c1996 Mon Sep 17 00:00:00 2001 From: Mohcine Chraibi Date: Thu, 22 Feb 2024 23:05:34 +0100 Subject: [PATCH] silence mypy checker error --- anim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anim.py b/anim.py index e85725b..168e613 100644 --- a/anim.py +++ b/anim.py @@ -29,7 +29,7 @@ def _speed_to_color(speed: float, min_speed: float, max_speed: float) -> str: """Map a speed value to a color using a colormap.""" normalized_speed = (speed - min_speed) / (max_speed - min_speed) - r, g, b = plt.cm.jet_r(normalized_speed)[:3] + r, g, b = plt.cm.jet_r(normalized_speed)[:3] # type: ignore return f"rgba({r*255:.0f}, {g*255:.0f}, {b*255:.0f}, 0.5)"