From 4c143564d1b860c6e77cbfbc77db01dc8966e5b1 Mon Sep 17 00:00:00 2001 From: hannah Date: Sun, 25 Dec 2022 02:06:23 -0500 Subject: [PATCH] removed line casting handle to list --- lib/matplotlib/legend.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/matplotlib/legend.py b/lib/matplotlib/legend.py index c61be2c5550a..ee3a64b00212 100644 --- a/lib/matplotlib/legend.py +++ b/lib/matplotlib/legend.py @@ -448,7 +448,6 @@ def val_or_rc(val, rc_name): labels.reverse() handles.reverse() - handles = list(handles) if len(handles) < 2: ncols = 1 self._ncols = ncols if ncols != 1 else ncol