Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit7abb3ba

Browse files
authored
Merge pull request#28625 from randolf-scholz/axesbase_twinx_type_hint
added typing_extensions.Self to _AxesBase.twinx
2 parents27d94d0 +cf441b9 commit7abb3ba

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
fromcollections.abcimportCallable,Iterable,Iterator,Sequence
55
frommatplotlibimportcbook
66
frommatplotlib.artistimportArtist
7+
frommatplotlib.axesimportAxes
78
frommatplotlib.axisimportXAxis,YAxis,Tick
89
frommatplotlib.backend_basesimportRendererBase,MouseButton,MouseEvent
910
frommatplotlib.cbookimportCallbackRegistry
@@ -384,8 +385,8 @@ class _AxesBase(martist.Artist):
384385
bbox_extra_artists:Sequence[Artist]|None= ...,
385386
for_layout_only:bool= ...
386387
)->Bbox|None: ...
387-
deftwinx(self)->_AxesBase: ...
388-
deftwiny(self)->_AxesBase: ...
388+
deftwinx(self)->Axes: ...
389+
deftwiny(self)->Axes: ...
389390
defget_shared_x_axes(self)->cbook.GrouperView: ...
390391
defget_shared_y_axes(self)->cbook.GrouperView: ...
391392
deflabel_outer(self,remove_inner_ticks:bool= ...)->None: ...

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp