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

Commit0dd3adb

Browse files
committed
Fix SubplotSpec.get_gridspec type hint
SubplotSpec.__init__ accepts an instance of GridSpecBase,the getter function should return a GridSpecBase as well.
1 parentb37dbe9 commit0dd3adb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/matplotlib/gridspec.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class SubplotSpec:
115115
defnum2(self)->int: ...
116116
@num2.setter
117117
defnum2(self,value:int)->None: ...
118-
defget_gridspec(self)->GridSpec: ...
118+
defget_gridspec(self)->GridSpecBase: ...
119119
defget_geometry(self)->tuple[int,int,int,int]: ...
120120
@property
121121
defrowspan(self)->range: ...

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp