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

Skip to content

Commit 15b28c0

Browse files
author
ojeda-e
committed
Replaced setstate with dict.
1 parent 7399b7f commit 15b28c0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/matplotlib/text.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,9 @@ def __getstate__(self):
177177
d = super().__getstate__()
178178
# remove the cached _renderer (if it exists)
179179
d['_renderer'] = None
180-
d['_cached'] = None
180+
d['_cached'] = {}
181181
return d
182182

183-
def __setstate__(self, state):
184-
self.__dict__.update(state)
185-
self._cached = dict()
186183

187184
def contains(self, mouseevent):
188185
"""

0 commit comments

Comments
 (0)