@@ -31,7 +31,7 @@ import matplotlib.streamplot as mstream
3131
3232import datetime
3333import PIL .Image
34- from collections .abc import Callable , Sequence
34+ from collections .abc import Callable , Iterable , Sequence
3535from typing import Any , Literal , overload
3636import numpy as np
3737from numpy .typing import ArrayLike
@@ -57,11 +57,11 @@ class Axes(_AxesBase):
5757 @overload
5858 def legend (self ) -> Legend : ...
5959 @overload
60- def legend (self , handles : Sequence [Artist | tuple [Artist , ...]], labels : Sequence [str ], ** kwargs ) -> Legend : ...
60+ def legend (self , handles : Iterable [Artist | tuple [Artist , ...]], labels : Iterable [str ], ** kwargs ) -> Legend : ...
6161 @overload
62- def legend (self , * , handles : Sequence [Artist | tuple [Artist , ...]], ** kwargs ) -> Legend : ...
62+ def legend (self , * , handles : Iterable [Artist | tuple [Artist , ...]], ** kwargs ) -> Legend : ...
6363 @overload
64- def legend (self , labels : Sequence [str ], ** kwargs ) -> Legend : ...
64+ def legend (self , labels : Iterable [str ], ** kwargs ) -> Legend : ...
6565 @overload
6666 def legend (self , ** kwargs ) -> Legend : ...
6767
0 commit comments