Thanks to visit codestin.com
Credit goes to github.com

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

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)