Skip to content

Commit f12c5bc

Browse files
committed
feat: add return types to plt.ylabel and plt.xlabel
1 parent 9bed9df commit f12c5bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/matplotlib-stubs/pyplot.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -956,15 +956,15 @@ def xlabel(
956956
*,
957957
loc: Literal["left", "center", "right"] | None = None,
958958
**kwargs: Unpack[TextProperties],
959-
): ...
959+
) -> Text: ...
960960
def ylabel(
961961
ylabel: str,
962962
fontdict: dict[str, Any] | None = None,
963963
labelpad: float | None = None,
964964
*,
965965
loc: Literal["bottom", "center", "top"] | None = None,
966966
**kwargs: Unpack[TextProperties],
967-
): ...
967+
) -> Text: ...
968968
def xscale(
969969
value: Literal["linear", "log", "symlog", "logit"] | ScaleBase,
970970
**kwargs,

0 commit comments

Comments
 (0)