Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Deprecate cbook.Stack. #26294

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
Jul 13, 2023
Merged

Deprecate cbook.Stack. #26294

merged 1 commit into from
Jul 13, 2023

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jul 12, 2023

These methods date back to when cbook.Stack also backed AxesStack, but now AxesStack is completely separate (#22114), Stack only backs the toolbar's home/forward/back buttons, and the methods don't make much sense in this class anymore.

It's really not something we need to provide as public API.

Also, backends don't need to access the private _elements attribute.

PR summary

PR checklist

@anntzer anntzer added this to the v3.8.0 milestone Jul 12, 2023
@timhoffm
Copy link
Member

Can we make the whole Stack private? It's a helper class and not something we want to provide to users or downstream packages.

It's really not something we need to provide as public API.
@anntzer
Copy link
Contributor Author

anntzer commented Jul 12, 2023

Good point, done.

@anntzer anntzer changed the title Deprecate unused Stack methods. Deprecate cbook.Stack. Jul 12, 2023
@timhoffm timhoffm merged commit e8bfdcb into matplotlib:main Jul 13, 2023
@anntzer anntzer deleted the sm branch July 13, 2023 16:09
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.

3 participants