Skip to content

Commit e1f4663

Browse files
committed
Make to_rgba aware of "none"
1 parent 08ff441 commit e1f4663

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mizani/_colors/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ def to_rgba(
6767
RGBA color(s)
6868
"""
6969
if isinstance(colors, str):
70+
if colors == "none" or colors == "None":
71+
return "none"
72+
7073
if isinstance(alpha, float):
7174
c = get_named_color(colors)
7275
if len(c) > 7:

0 commit comments

Comments
 (0)