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 fa2d179

Browse filesBrowse files
committed
Add missing layout engine type hints
1 parent 0fd714a commit fa2d179
Copy full SHA for fa2d179

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed

‎lib/matplotlib/layout_engine.pyi

Copy file name to clipboardExpand all lines: lib/matplotlib/layout_engine.pyi
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ from matplotlib.figure import Figure
33
from typing import Any
44

55
class LayoutEngine:
6-
def __init__(self, **kwargs) -> None: ...
6+
def __init__(self, **kwargs: Any) -> None: ...
77
def set(self) -> None: ...
88
@property
99
def colorbar_gridspec(self) -> bool: ...
1010
@property
1111
def adjust_compatible(self) -> bool: ...
1212
def get(self) -> dict[str, Any]: ...
13-
def execute(self, fig) -> None: ...
13+
def execute(self, fig: Figure) -> None: ...
1414

1515
class PlaceHolderLayoutEngine(LayoutEngine):
1616
def __init__(
17-
self, adjust_compatible: bool, colorbar_gridspec: bool, **kwargs
17+
self, adjust_compatible: bool, colorbar_gridspec: bool, **kwargs: Any
1818
) -> None: ...
1919
def execute(self, fig: Figure) -> None: ...
2020

@@ -26,7 +26,7 @@ class TightLayoutEngine(LayoutEngine):
2626
h_pad: float | None = ...,
2727
w_pad: float | None = ...,
2828
rect: tuple[float, float, float, float] = ...,
29-
**kwargs
29+
**kwargs: Any
3030
) -> None: ...
3131
def execute(self, fig: Figure) -> None: ...
3232
def set(
@@ -48,9 +48,9 @@ class ConstrainedLayoutEngine(LayoutEngine):
4848
wspace: float | None = ...,
4949
rect: tuple[float, float, float, float] = ...,
5050
compress: bool = ...,
51-
**kwargs
51+
**kwargs: Any
5252
) -> None: ...
53-
def execute(self, fig: Figure): ...
53+
def execute(self, fig: Figure) -> Any: ...
5454
def set(
5555
self,
5656
*,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.