Skip to content

Commit 8076615

Browse files
authored
Merge pull request #30326 from meeseeksmachine/auto-backport-of-pr-30321-on-v3.10.x
Backport PR #30321 on branch v3.10.x (Fix type annotation for Axes.get_legend() to include None)
2 parents 98594a2 + 0139aca commit 8076615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_base.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class _AxesBase(martist.Artist):
224224
ymin: float | None = ...,
225225
ymax: float | None = ...
226226
) -> tuple[float, float, float, float]: ...
227-
def get_legend(self) -> Legend: ...
227+
def get_legend(self) -> Legend | None: ...
228228
def get_images(self) -> list[AxesImage]: ...
229229
def get_lines(self) -> list[Line2D]: ...
230230
def get_xaxis(self) -> XAxis: ...

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy