Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit15b28c0

Browse files
author
ojeda-e
committed
Replaced setstate with dict.
1 parent7399b7f commit15b28c0

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
returnd
182182

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

187184
defcontains(self,mouseevent):
188185
"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp