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