Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aloctavodia committed Oct 17, 2024
1 parent 3cc46aa commit f01e678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arviz_plots/backend/plotly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def combine_color_alpha(color, alpha=1):
"""Combine a color and alpha value into the equivalent rgba."""
if isinstance(color, str):
if color.startswith("rgba("):
warnings.warning("Found rgba color, value for `alpha` is ignored.")
warnings.warn("Found rgba color, value for `alpha` is ignored.")
return color
if color.startswith("#"):
color = hex_to_rgb(color)
Expand Down

0 comments on commit f01e678

Please sign in to comment.