Skip to content

#26865 removing deprecations to axislines.py #26900

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
Oct 19, 2023

Conversation

farrjere
Copy link
Contributor

PR summary

This PR removes the depcrecated code during the version 3.7 from patches.py and axislines.py for the issue #26865

PR checklist

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide

We strive to be a welcoming and open project. Please follow our Code of Conduct.

@farrjere farrjere force-pushed the deprecated branch 3 times, most recently from acb4a7f to 5044e8f Compare September 24, 2023 14:05
Copy link
Member

@oscargus oscargus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

I think this is good, subject to updating the wording of the release note.

@oscargus
Copy link
Member

For a second reviewer: there is a PR open for patches, #26890, but this can go in as is, the other requires some updates.

@ksunden ksunden mentioned this pull request Sep 25, 2023
14 tasks
@ksunden
Copy link
Member

ksunden commented Oct 11, 2023

We merged another PR that addressed the patches portions of this, @farrjere can you refocus this PR on only the axislines portion?

Comment on lines 457 to 461
class _Base(ConnectionStyle):
@ api.deprecated("3.7")
class SimpleEvent:
def __init__(self, xy: tuple[float, float]) -> None: ...
def __init__(self, xy):
self.x, self.y = xy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not wish to add this back, especially as this is a pyi stub file (where @api.deprecated has no effect)

Copy link
Member

@ksunden ksunden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert changes to patches.pyi

@ksunden
Copy link
Member

ksunden commented Oct 17, 2023

Needs a rebase because an adjacent bit of code was modified (adding a new deprecation for the 3.9 cycle). That deprecation should be kept, but the removal of the passthru_pt attr should still happen.

@farrjere
Copy link
Contributor Author

Wouldn't handling the merge conflict handle that? I went to do this myself but it resulted in an issue with _version.py having a formatting issue that couldn't commit (coming from the merge).

@ksunden
Copy link
Member

ksunden commented Oct 17, 2023

Rebasing is our preferred method of handling merge conflicts.

_version.py should not be committed into the repo (it is a build artifact, and you are seeing it as a result of the change of build system #26621) I would suggest running git clean -fdx first (and reinstalling after updating to the meson-based branch).

The patch as submitted has additions to patches.pyi, which should not be included.

@QuLogic QuLogic added this to the v3.9.0 milestone Oct 19, 2023
@QuLogic QuLogic merged commit dfdb37a into matplotlib:main Oct 19, 2023
@QuLogic
Copy link
Member

QuLogic commented Oct 19, 2023

Thanks @farrjere! Congratulations on your first PR to Matplotlib 🎉 We hope to hear from you again.

@QuLogic QuLogic changed the title #26865 removing deprecations to patches.py and axislines.py #26865 removing deprecations to axislines.py Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

4 participants