8000 Merge pull request #28636 from meeseeksmachine/auto-backport-of-pr-28… · matplotlib/matplotlib@eb4b608 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit eb4b608

Browse files
authored
Merge pull request #28636 from meeseeksmachine/auto-backport-of-pr-28625-on-v3.9.x
Backport PR #28625 on branch v3.9.x (added typing_extensions.Self to _AxesBase.twinx)
2 parents 143d369 + 7457ba4 commit eb4b608

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/axes/_base.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import datetime
44
from collections.abc import Callable, Iterable, Iterator, Sequence
55
from matplotlib import cbook
66
from matplotlib.artist import Artist
7+
from matplotlib.axes import Axes
78
from matplotlib.axis import XAxis, YAxis, Tick
89
from matplotlib.backend_bases import RendererBase, MouseButton, MouseEvent
910
from matplotlib.cbook import CallbackRegistry
@@ -384,8 +385,8 @@ class _AxesBase(martist.Artist):
384385
bbox_extra_artists: Sequence[Artist] | None = ...,
385386
for_layout_only: bool = ...
386387
) -> Bbox | None: ...
387-
def twinx(self) -> _AxesBase: ...
388-
def twiny(self) -> _AxesBase: ...
388+
def twinx(self) -> Axes: ...
389+
def twiny(self) -> Axes: ...
389390
def get_shared_x_axes(self) -> cbook.GrouperView: ...
390391
def get_shared_y_axes(self) -> cbook.GrouperView: ...
391392
def label_outer(self, remove_inner_ticks: bool = ...) -> None: ...

0 commit comments

Comments
 (0)
0