@@ -31,7 +31,7 @@ import matplotlib.streamplot as mstream
31
31
32
32
import datetime
33
33
8000
import PIL .Image
34
- from collections .abc import Callable , Sequence
34
+ from collections .abc import Callable , Iterable , Sequence
35
35
from typing import Any , Literal , overload
36
36
import numpy as np
37
37
from numpy .typing import ArrayLike
@@ -57,11 +57,11 @@ class Axes(_AxesBase):
57
57
@overload
58
58
def legend (self ) -> Legend : ...
59
59
@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 : ...
61
61
@overload
62
- def legend (self , * , handles : Sequence [Artist | tuple [Artist , ...]], ** kwargs ) -> Legend : ...
62
+ def legend (self , * , handles : Iterable [Artist | tuple [Artist , ...]], ** kwargs ) -> Legend : ...
63
63
@overload
64
- def legend (self , labels : Sequence [str ], ** kwargs ) -> Legend : ...
64
+ def legend (self , labels : Iterable [str ], ** kwargs ) -> Legend : ...
65
65
@overload
66
66
def legend (self , ** kwargs ) -> Legend : ...
67
67
0 commit comments