Closed ksunden closed 1 year ago
Patch and project coverage have no change.
Comparison is base (
47cc23d
) 0.00% compared to head (9b22aa7
) 0.00%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Thank you for the heads up and PR. Type hinting in matplotlib is quite welcome and I will keep track ahead of the 3.8 release.
Actual return is in fact list[list[artist]], which is what mpl.ArtistAnimation actually expects, just the type hints were incorrect
Test case (adapted from tests):
Outputs (formatted for readability):
Note that
_draw_plots
returns a nested list.We (matplotlib) recently introduced type hints (matplotlib/matplotlib#24976), this was discovered in my survey of some of our downstream packages to see how our type hints do. There are a couple more things that I have flagged that either I have opened or intend to open fixing things on our end, I think there may be some clarifications for the type checker here still even so (though mostly fairly easy e.g. "add a type hint for this variable which the typechecker just sees as Unknown" or "make this list a tuple so the typechecker can validate length and each element type") We would invite you to test it out early so that you are not surprised when mpl v3.8 is released in a couple months. If you have any questions or are unsure of how to satisfy the typechecker for mpl related things, feel free to ping me.