@@ -4,6 +4,7 @@ import datetime
4
4
from collections .abc import Callable , Iterable , Iterator , Sequence
5
5
from matplotlib import cbook
6
6
from matplotlib .artist import Artist
7
+ from matplotlib .axes import Axes
7
8
from matplotlib .axis import XAxis , YAxis , Tick
8
9
from matplotlib .backend_bases import RendererBase , MouseButton , MouseEvent
9
10
from matplotlib .cbook import CallbackRegistry
@@ -27,7 +28,6 @@ from cycler import Cycler
27
28
import numpy as np
28
29
from numpy .typing import ArrayLike
29
30
from typing import Any , Literal , TypeVar , overload
30
- from typing_extensions import Self
31
31
from matplotlib .typing import ColorType
32
32
33
33
_T = TypeVar ("_T" , bound = Artist )
@@ -385,8 +385,8 @@ class _AxesBase(martist.Artist):
385
385
bbox_extra_artists : Sequence [Artist ] | None = ...,
386
386
for_layout_only : bool = ...
387
387
) -> Bbox | None : ...
388
- def twinx (self ) -> Self : ...
389
- def twiny (self ) -> Self : ...
388
+ def twinx (self ) -> Axes : ...
389
+ def twiny (self ) -> Axes : ...
390
390
def get_shared_x_axes (self ) -> cbook .GrouperView : ...
391
391
def get_shared_y_axes (self ) -> cbook .GrouperView : ...
392
392
def label_outer (self , remove_inner_ticks : bool = ...) -> None : ...
0 commit comments