8000 Remove call to non-existent method _default_contains in Artist by ksunden · Pull Request #28157 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Remove call to non-existent method _default_contains in Artist #28157

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
May 1, 2024

Conversation

ksunden
Copy link
Member
@ksunden ksunden commented Apr 30, 2024

PR summary

This is a follow-up from #25546, whihch removed the _default_contains method.
A similar change was made to several other classes, such as Axes and Figure,
however the call within Artist itself was not removed.

This has evidently not presented a problem to anybody (that we know of), since most
artists (that are used interactively at least) have their own contains method.

However, if one were to have an Artist without a contains instead of returning False, {},
you would get an AttributeError.

Considered adding a test, but opted not to initially. (Willing to be talked into doing so)

PR checklist

@tacaswell tacaswell added this to the v3.9.0 milestone May 1, 2024
@tacaswell tacaswell merged commit f00b22d into matplotlib:main May 1, 2024
42 of 43 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request May 1, 2024
ksunden added a commit that referenced this pull request May 3, 2024
…157-on-v3.9.x

Backport PR #28157 on branch v3.9.x (Remove call to non-existent method _default_contains in Artist)
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
0