Skip to content
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

Fix incorrect deprecation warning #22719

Merged
merged 1 commit into from
Mar 30, 2022

Conversation

oscargus
Copy link
Member

@oscargus oscargus commented Mar 28, 2022

PR Summary

Closes #22640

Simple fix based on @anntzer's suggestion. Seems to get rid of the deprecation warning if nothing else.

Makes sense to get it in for 3.5.2? (As it is caused by a change in 3.5 if I understand it correctly.)

Should I add a smoke test for it?

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).

@oscargus oscargus added this to the v3.5.2 milestone Mar 28, 2022
@tacaswell
Copy link
Member

I think we already have tests of these warnings, 👍🏻 on adding a test that empty lists do not warn.

@oscargus oscargus force-pushed the incorrectdeprecationwarning branch from 506ea91 to c0a384e Compare March 30, 2022 07:38
@oscargus
Copy link
Member Author

Smoke test added.

@QuLogic QuLogic merged commit da9533d into matplotlib:main Mar 30, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Mar 30, 2022
QuLogic added a commit that referenced this pull request Mar 31, 2022
…719-on-v3.5.x

Backport PR #22719 on branch v3.5.x (Fix incorrect deprecation warning)
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.

[Bug]: Confusing deprecation warning when empty data passed to axis with category units
4 participants