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

Skip to content

Commit 6f74319

Browse files
committed
Fix RcParams.__len__
1 parent cfc01ce commit 6f74319

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)