Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b23a3bd

Browse files
authored
Merge pull request #26820 from meeseeksmachine/auto-backport-of-pr-26811-on-v3.8.x
Backport PR #26811 on branch v3.8.x (Add overload for slice to Spines.__getitem__)
2 parents 0729415 + cc9b0a2 commit b23a3bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/spines.pyi

Lines changed: 2 additions & 0 deletions
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)