Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
backend_bases.pyi:@overload
FigureCanvasBase.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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this 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.
Thanks and congratulations on your first merged PR@anabelle2001 ! Hope to see you around! (There may be more missing typing...) |
a464694
intomatplotlib:mainUh oh!
There was an error while loading.Please reload this page.
Thank you! |
PR summary
I've found it a bit annoying that my type checker complains when i pass in a function
f: Callable[[PickEvent],Any]
tompl_connect("pick_event",f)
. This PR adds@overload
s to tell type checkers like pyright that you can do that.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