8000 Merge pull request #12631 from meeseeksmachine/auto-backport-of-pr-12… · matplotlib/matplotlib@2097384 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2097384

Browse files
authored
Merge pull request #12631 from meeseeksmachine/auto-backport-of-pr-12630-on-v3.0.x
Backport PR #12630 on branch v3.0.x (Fix RcParams.__len__)
2 parents b97cb0a + 7b504fe commit 2097384

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
@@ -908,6 +908,9 @@ def __iter__(self):
908908
"""Yield sorted list of keys."""
909909
yield from sorted(dict.__iter__(self))
910910

911+
def __len__(self):
912+
return dict.__len__(self)
913+
911914
def find_all(self, pattern):
912915
"""
913916
Return the subset of this RcParams dictionary whose keys match,

0 commit comments

Comments
 (0)
0