Skip to content

Commit 0dd3adb

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 parent b37dbe9 commit 0dd3adb

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
def num2(self) -> int: ...
116116
@num2.setter
117117
def num2(self, value: int) -> None: ...
118-
def get_gridspec(self) -> GridSpec: ...
118+
def get_gridspec(self) -> GridSpecBase: ...
119119
def get_geometry(self) -> tuple[int, int, int, int]: ...
120120
@property
121121
def rowspan(self) -> range: ...

0 commit comments

Comments
 (0)