8000 Merge pull request #21936 from anntzer/gs · matplotlib/matplotlib@9221d66 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9221d66

Browse files
authored
Merge pull request #21936 from anntzer/ 8000 gs
Small `__getstate__` cleanups.
2 parents 07f2baf + 1f30016 commit 9221d66

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,6 @@ def __init__(self, fig, rect,
682682
which='major')
683683

684684
def __getstate__(self):
685-
# The renderer should be re-created by the figure, and then cached at
686-
# that point.
687685
state = super().__getstate__()
688686
# Prune the sharing & twinning info to only contain the current group.
689687
state["_shared_axes"] = {

lib/matplotlib/gridspec.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,9 +623,6 @@ def num2(self):
623623
def num2(self, value):
624624
self._num2 = value
625625

626-
def __getstate__(self):
627-
return {**self.__dict__}
628-
629626
def get_gridspec(self):
630627
return self._gridspec
631628

0 commit comments

Comments
 (0)
0