Skip to content

Commit bdc07de

Browse files
tacaswelljklymak
andauthored
ENH: improve warning
Co-authored-by: Jody Klymak <[email protected]>
1 parent 3a2e196 commit bdc07de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mpl_gui/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ def by_label(self):
158158
multiples = {k: v for k, v in counts.items() if v > 1}
159159
warnings.warn(
160160
(
161-
"There are repeated labels but only one figure with a given label can be return. "
162-
+ f"The repeated labels are {multiples!r}."
161+
f"There are repeated labels ({multiples!r}), but only the newest figure with that label can "
162+
"be returned. "
163163
),
164164
stacklevel=2,
165165
)

0 commit comments

Comments
 (0)