Skip to content

Widgets: Remove deprecations and make arguments keyword only - #26853

Merged
anntzer merged 1 commit into
matplotlib:mainfrom
oscargus:widgetdeprecationremovals
Sep 24, 2023
Merged

anntzer merged 1 commit into
matplotlib:mainfrom
oscargus:widgetdeprecationremovals

Conversation

@oscargus

@oscargus oscargus commented Sep 21, 2023 •

Copy link
Copy Markdown
Member

PR summary

PR checklist

@oscargus oscargus added API: changes Changes to the public API, typically requiring deprecation. topic: widgets/UI labels Sep 21, 2023
@oscargus oscargus changed the title Remove deprecations and make arguments keyword only Widgets: Remove deprecations and make arguments keyword only Sep 21, 2023
@oscargus
oscargus force-pushed the widgetdeprecationremovals branch 4 times, most recently from 08d9e2c to 989dda7 Compare September 21, 2023 08:44
@oscargus oscargus added this to the v3.9.0 milestone Sep 21, 2023
@oscargus
oscargus force-pushed the widgetdeprecationremovals branch 4 times, most recently from 2e37748 to e19633f Compare September 21, 2023 19:14
@QuLogic

QuLogic commented Sep 21, 2023

Copy link
Copy Markdown
Member

@oscargus do you mind holding off on any other deprecation removals? We would like to leave that as a good first issue for the sprint tomorrow.

@oscargus

Copy link
Copy Markdown
Member Author

Sure, no problems! Didn't know that.

@QuLogic QuLogic mentioned this pull request Sep 22, 2023
14 tasks done
@QuLogic

QuLogic commented Sep 22, 2023 •

Copy link
Copy Markdown
Member

No worries, we only decided yesterday. Also, this PR was very useful as an example of what to do.

Comment thread lib/matplotlib/widgets.py Resolved
Comment thread lib/matplotlib/widgets.py Resolved
Comment thread lib/matplotlib/widgets.py Resolved
@oscargus
oscargus force-pushed the widgetdeprecationremovals branch from e19633f to 705568a Compare September 22, 2023 07:06
Comment thread lib/matplotlib/widgets.py
Comment on lines +1665 to +1666
if (i in inds["ind"]
or t.get_window_extent().contains(event.x, event.y)):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Fits in a line now:

Suggested change
if (i in inds["ind"]
or t.get_window_extent().contains(event.x, event.y)):
if i in inds["ind"] or t.get_window_extent().contains(event.x, event.y):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have a further PR that rewrites this loop, so let's just get this in for now.

@anntzer
anntzer merged commit 37f26da into matplotlib:main Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API: changes Changes to the public API, typically requiring deprecation. topic: widgets/UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants