@@ -36,7 +36,7 @@ from collections.abc import Callable, Iterable, Sequence
3636from typing import Any , Literal , overload
3737import numpy as np
3838from numpy .typing import ArrayLike
39- from matplotlib .typing import ColorType , MarkerType , LineStyleType
39+ from matplotlib .typing import ColorType , MarkerType , LegendLocType , LineStyleType
4040import pandas as pd
4141
4242
@@ -65,13 +65,16 @@ class Axes(_AxesBase):
6565 @overload
6666 def legend (self ) -> Legend : ...
6767 @overload
68- def legend (self , handles : Iterable [Artist | tuple [Artist , ...]], labels : Iterable [str ], ** kwargs ) -> Legend : ...
68+ def legend (self , handles : Iterable [Artist | tuple [Artist , ...]], labels : Iterable [str ],
69+ * , loc : LegendLocType | None = ..., ** kwargs ) -> Legend : ...
6970 @overload
70- def legend (self , * , handles : Iterable [Artist | tuple [Artist , ...]], ** kwargs ) -> Legend : ...
71+ def legend (self , * , handles : Iterable [Artist | tuple [Artist , ...]],
72+ loc : LegendLocType | None = ..., ** kwargs ) -> Legend : ...
7173 @overload
72- def legend (self , labels : Iterable [str ], ** kwargs ) -> Legend : ...
74+ def legend (self , labels : Iterable [str ],
75+ * , loc : LegendLocType | None = ..., ** kwargs ) -> Legend : ...
7376 @overload
74- def legend (self , ** kwargs ) -> Legend : ...
77+ def legend (self , * , loc : LegendLocType | None = ..., * *kwargs ) -> Legend : ...
7578
7679 def inset_axes (
7780 self ,
0 commit comments