8000 Fix _preprocess_data for Py3.9. by anntzer · Pull Request #16585 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Fix _preprocess_data for Py3.9. #16585

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
Mar 1, 2020
Merged

Fix _preprocess_data for Py3.9. #16585

merged 1 commit into from
Mar 1, 2020

Conversation

anntzer
Copy link
Contributor
@anntzer anntzer commented Feb 27, 2020

On Py3.9 BoundArguments becomes a plain dict, so move_to_end doesn't
exist anymore and the whole thing crashes with an AttributeError.
(Travis currently fails the Py3.9 run.)

As it turns out there's a simpler implementation of the whole thing
anyways, one can just take whatever args/kwargs were explicitly passed
in and, if "label" needs to be added, always add it to kwargs.

May make sense to backport to mpl3.2?

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

On Py3.9 BoundArguments becomes a plain dict, so move_to_end doesn't
exist anymore and the whole thing crashes with an AttributeError.
(Travis currently fails the Py3.9 run.)

As it turns out there's a simpler implementation of the whole thing
anyways, one can just take whatever args/kwargs were explicitly passed
in and, if "label" needs to be added, always add it to kwargs.
@tacaswell tacaswell added this to the v3.2.1 milestone Feb 28, 2020
@tacaswell
Copy link
Member

CI is passed, but the webhooks got lost 🤷‍♀️

@QuLogic QuLogic merged commit f51d19f into matplotlib:master Mar 1, 2020
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Mar 1, 2020
@anntzer anntzer deleted the badict branch March 1, 2020 10:02
timhoffm added a commit that referenced this pull request Mar 1, 2020
…585-on-v3.2.x

Backport PR #16585 on branch v3.2.x (Fix _preprocess_data for Py3.9.)
@tacaswell tacaswell modified the milestones: v3.2.1, v3.2.0 Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0