8000 Small `__getstate__` cleanups. by anntzer · Pull Request #21936 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Small __getstate__ cleanups. #21936

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions lib/matplotlib/axes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,6 @@ def __init__(self, fig, rect,
which='major')

def __getstate__(self):
# The renderer should be re-created by the figure, and then cached at
# that point.
state = super().__getstate__()
# Prune the sharing & twinning info to only contain the current group.
state["_shared_axes"] = {
Expand Down
3 changes: 0 additions & 3 deletions lib/matplotlib/gridspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,9 +623,6 @@ def num2(self):
def num2(self, value):
self._num2 = value

def __getstate__(self):
return {**self.__dict__}

def get_gridspec(self):
return self._gridspec

Expand Down
0