Skip to content

Commit cc9b0a2

Browse files
tacaswellmeeseeksmachine
authored andcommitted
Backport PR #26811: Add overload for slice to Spines.__getitem__
1 parent 0729415 commit cc9b0a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/spines.pyi

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ class Spines(MutableMapping[str, Spine]):
7575
def __getitem__(self, key: str) -> Spine: ...
7676
@overload
7777
def __getitem__(self, key: list[str]) -> SpinesProxy: ...
78+
@overload
79+
def __getitem__(self, key: slice) -> SpinesProxy: ...
7880
def __setitem__(self, key: str, value: Spine) -> None: ...
7981
def __delitem__(self, key: str) -> None: ...
8082
def __iter__(self) -> Iterator[str]: ...

0 commit comments

Comments
 (0)