Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

backend_bases.pyi:@overloadFigureCanvasBase.mpl_connect() for different event types#29898

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
oscargus merged 1 commit intomatplotlib:mainfromanabelle2001:my_revision
Apr 10, 2025

Conversation

anabelle2001
Copy link
Contributor

PR summary

  • What problem does it solve?

I've found it a bit annoying that my type checker complains when i pass in a functionf: Callable[[PickEvent],Any] tompl_connect("pick_event",f). This PR adds@overloads to tell type checkers like pyright that you can do that.

  • What is the reasoning for this implementation?

I thought about putting the strings inside a underscored variable, but wasn't sure if it made more sense than just listing them out. I also thought about using ruff, but i didn't want to mess with L509,511.

PR checklist

Copy link

@github-actionsgithub-actionsbot 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 uson gitter for real-time discussion.

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

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

@tacaswelltacaswell added this to thev3.11.0 milestoneApr 10, 2025
@oscargus
Copy link
Member

Thanks and congratulations on your first merged PR@anabelle2001 ! Hope to see you around! (There may be more missing typing...)

@oscargusoscargus merged commita464694 intomatplotlib:mainApr 10, 2025
42 of 44 checks passed
@anabelle2001
Copy link
ContributorAuthor

Thank you!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@github-actionsgithub-actions[bot]github-actions[bot] left review comments

@tacaswelltacaswelltacaswell approved these changes

@oscargusoscargusoscargus approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.11.0
Development

Successfully merging this pull request may close these issues.

3 participants
@anabelle2001@oscargus@tacaswell

[8]ページ先頭

©2009-2025 Movatter.jp