Skip to content

Commit 2fa71d4

Browse files
committed
Fix local name collision in comprehension
1 parent a6f9e7d commit 2fa71d4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ridgeplot/_figure_factory.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ def create_ridgeplot(
185185
)
186186
if color_discrete_map:
187187
solid_colors = (
188-
(color_discrete_map[label] for label in row_labels) for row_labels in trace_labels
188+
(color_discrete_map[label] for label in row_trace_labels)
189+
for row_trace_labels in trace_labels
189190
)
190191
else:
191192
solid_colors = compute_solid_colors(

0 commit comments

Comments
 (0)