8000 MNT : make keys property return a copy · danielballan/matplotlib@105fcd6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 105fcd6

Browse files
committed
MNT : make keys property return a copy
Don't open the chance for outside users to mess with contents of the `_keys` attribute.
1 parent 4aef726 commit 105fcd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cycler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(self, left, right=None, op=None):
5555

5656
@property
5757
def keys(self):
58-
return self._keys
58+
return set(self._keys)
5959

6060
def finite_iter(self):
6161
"""

0 commit comments

Comments
 (0)
0