-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Bug]: Type annotation for add_subplots
has incorrect return type for projection="3d"
#29334
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
Comments
Duplicate of #27455 I think. |
I'd need some feedback on #29341 from y'all who know more than I do about type annotation, but the PoC PR at least fixes the problem for me. |
To be slightly picky, it is a correct but less specific base type. |
The wider problem is that there are no type hints for any of the |
This is a wider problem with typing in Axes3D, but this does seem like low hanging fruit |
This did solve my specific problem, FWIW: the matplotlib examples in the SP lecture notes. |
Bug summary
The return type for
add_subplots
withprojection="3d"
should beAxes3D
.The current implementation is:
Code for reproduction
Actual outcome
Pyright complains:
Expected outcome
No error.
Additional information
No response
Operating system
No response
Matplotlib Version
3.10.0
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
None
The text was updated successfully, but these errors were encountered: