FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

MNT: make print_figure kwarg wrapper support py311 by tacaswell · Pull Request #21705 · matplotlib/matplotlib · GitHub

Repository navigation

MNT: make print_figure kwarg wrapper support py311 - #21705

Merged
dstansby merged 2 commits into
matplotlib:mainfrom
tacaswell:py311
Nov 28, 2021
Merged

dstansby merged 2 commits into
matplotlib:mainfrom
tacaswell:py311

Conversation

Copy link
Copy Markdown
Member

PR Summary

Do not fully understand what changed, but without this change walk_stack
would start 2 frames higher (in the test module, not in backend_bases) which
would mean we never saw the frame with print_figure and hence was getting
warnings which we converted to failures on a vast majority of the tests.

I suspect that this is related to the fast-Python work and avoiding making
unneeded structures during the calls, but chased that theory down yet.

Discovered on a commit between py311a2 and py311a3.

This will need a followup PR to main that rips out almost all of this code. We should have ripped it out in mpl35, but do not think we should do that in a patch release so also updated the deprecation date.

PR Checklist

Tests and Styling

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • New features are documented, with examples if plot related.
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).

Do not fully understand what changed, but without this change `walk_stack`
would start 2 frames higher (in the test module, not in backend_bases) which
would mean we never saw the frame with `print_figure` and hence was getting
warnings which we converted to failures on a vast majority of the tests.

I suspect that this is related to the fast-Python work and avoiding making
unneeded structures during the calls, but chased that theory down yet.

Discovered on a commit between py311a2 and py311a3.
We should have pulled this out in mpl3.5
tacaswell added this to the v3.5.1 milestone Nov 22, 2021

anntzer commented Nov 22, 2021

Copy link
Copy Markdown
Contributor

#21395 is a possible implementation of the followup (which I agree is too large for a patch release).

Copy link
Copy Markdown
Member Author

Ah, great, I missed that PR existed. Glad I did not waste time trying to sort out how to do that removal :)

dstansby merged commit 28a5f6d into matplotlib:main Nov 28, 2021
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Nov 28, 2021
dstansby added a commit that referenced this pull request Nov 28, 2021
…705-on-v3.5.x

Backport PR #21705 on branch v3.5.x (MNT: make print_figure kwarg wrapper support py311)
tacaswell deleted the py311 branch December 1, 2021 20:50
imgbot Bot pushed a commit to kkipngenokoech/matplotlib that referenced this pull request Apr 19, 2026
imgbot Bot pushed a commit to kkipngenokoech/matplotlib that referenced this pull request Apr 19, 2026
imgbot Bot pushed a commit to kkipngenokoech/matplotlib that referenced this pull request Apr 19, 2026
imgbot Bot pushed a commit to kkipngenokoech/matplotlib that referenced this pull request Apr 19, 2026
imgbot Bot pushed a commit to kkipngenokoech/matplotlib that referenced this pull request Apr 19, 2026
imgbot Bot pushed a commit to kkipngenokoech/matplotlib that referenced this pull request Apr 19, 2026
imgbot Bot pushed a commit to kkipngenokoech/matplotlib that referenced this pull request Apr 19, 2026
imgbot Bot pushed a commit to kkipngenokoech/matplotlib that referenced this pull request Apr 19, 2026
imgbot Bot pushed a commit to kkipngenokoech/matplotlib that referenced this pull request Apr 19, 2026
imgbot Bot pushed a commit to kkipngenokoech/matplotlib that referenced this pull request Apr 19, 2026
imgbot Bot pushed a commit to kkipngenokoech/matplotlib that referenced this pull request Apr 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL