Skip to content

Commit d0eed0e

Browse files
committed
Added None to get_legend() type annotation
1 parent 2e65332 commit d0eed0e

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
@@ -225,7 +225,7 @@ class _AxesBase(martist.Artist):
225225
ymin: float | None = ...,
226226
ymax: float | None = ...
227227
) -> tuple[float, float, float, float]: ...
228-
def get_legend(self) -> Legend: ...
228+
def get_legend(self) -> Legend | None: ...
229229
def get_images(self) -> list[AxesImage]: ...
230230
def get_lines(self) -> list[Line2D]: ...
231231
def get_xaxis(self) -> XAxis: ...

0 commit comments

Comments
 (0)