-
Notifications
You must be signed in to change notification settings - Fork 104
Closed
Description
The return type is dict[Text, Axes]. Since this is the functional API, it returns a tuple of figure and axes dictionary, so it should be tuple[Figure, dict[Text, Axes]]. I can submit a PR on this, if you'd like. It's alright to use Figure as the return type, or should I annotate it with some other abstract superclass?
As it is now:
python-type-stubs/matplotlib/pyplot.pyi
Lines 223 to 232 in 917dffc
| def subplot_mosaic( | |
| mosaic: list | str, | |
| *, | |
| sharex: bool = ..., | |
| sharey: bool = ..., | |
| subplot_kw: dict = ..., | |
| gridspec_kw: dict = ..., | |
| empty_sentinel: object = ..., | |
| **fig_kw | |
| ) -> dict[Text, Axes]: ... |
With correction:
def subplot_mosaic(
...
) -> tuple[Figure, dict[Text, Axes]]: ...Metadata
Metadata
Assignees
Labels
No labels