@@ -30,7 +30,7 @@ import matplotlib.streamplot as mstream
3030
3131import datetime
3232import PIL .Image
33- from collections .abc import Callable , Sequence
33+ from collections .abc import Callable , Iterable , Sequence
3434from typing import Any , Literal , overload
3535import numpy as np
3636from numpy .typing import ArrayLike
@@ -56,11 +56,11 @@ class Axes(_AxesBase):
5656 @overload
5757 def legend (self ) -> Legend : ...
5858 @overload
59- def legend (self , handles : Sequence [Artist | tuple [Artist , ...]], labels : Sequence [str ], ** kwargs ) -> Legend : ...
59+ def legend (self , handles : Iterable [Artist | tuple [Artist , ...]], labels : Iterable [str ], ** kwargs ) -> Legend : ...
6060 @overload
61- def legend (self , * , handles : Sequence [Artist | tuple [Artist , ...]], ** kwargs ) -> Legend : ...
61+ def legend (self , * , handles : Iterable [Artist | tuple [Artist , ...]], ** kwargs ) -> Legend : ...
6262 @overload
63- def legend (self , labels : Sequence [str ], ** kwargs ) -> Legend : ...
63+ def legend (self , labels : Iterable [str ], ** kwargs ) -> Legend : ...
6464 @overload
6565 def legend (self , ** kwargs ) -> Legend : ...
6666
0 commit comments