8000 Merge pull request #12630 from timhoffm/fix-rcparams-len · matplotlib/matplotlib@9cecc98 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9cecc98

Browse files
authored
Merge pull request #12630 from timhoffm/fix-rcparams-len
Fix RcParams.__len__
2 parents cfc01ce + 6f74319 commit 9cecc98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,9 @@ def __iter__(self):
887887
"""Yield sorted list of keys."""
888888
yield from sorted(dict.__iter__(self))
889889

890+
def __len__(self):
891+
return dict.__len__(self)
892+
890893
def find_all(self, pattern):
891894
"""
892895
Return the subset of this RcParams dictionary whose keys match,

0 commit comments

Comments
 (0)
0