Add typing interface file and type hints for backends.backend_pdf#31854
Add typing interface file and type hints for backends.backend_pdf#31854myzhang1029 wants to merge 2 commits into
backends.backend_pdf#31854Conversation
|
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. We also ask that you please finish addressing any review comments on this PR and wait for it to be merged (or closed) before opening a new one, as it can be a valuable learning experience to go through the review process. You can also join us on discourse chat 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. |
f0cee2f to
8cfff73
Compare
PR summary
This PR is modeled against #30126, but hopefully it's a more targeted patch that doesn't get stalled.
This pull request adds .pyi files for the
matplotlib.backends.backend_pdfmodule.Why this change is necessary: To allow static type checkers like
mypyto process this module (in particular, my use case is mainly aroundPdfFileandPdfPages).AI Disclosure
No AI involved yet.PR checklist
Parts of the (presumably mostly internal) methods are left untyped at the moment.