Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a9ad37e

Browse files
committed
fix stubs
1 parent c6932a5 commit a9ad37e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/matplotlib/axes/_axes.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ class Axes(_AxesBase):
739739
dataset: ArrayLike | Sequence[ArrayLike],
740740
positions: ArrayLike | None = ...,
741741
*,
742-
orientation: Literal["vertical", "horizontal"] | None = ...,
742+
orientation: Literal["vertical", "horizontal"] = ...,
743743
vert: bool | None = ...,
744744
widths: float | ArrayLike = ...,
745745
showmeans: bool = ...,
@@ -759,7 +759,7 @@ class Axes(_AxesBase):
759759
vpstats: Sequence[dict[str, Any]],
760760
positions: ArrayLike | None = ...,
761761
*,
762-
orientation: Literal["vertical", "horizontal"] | None = ...,
762+
orientation: Literal["vertical", "horizontal"] = ...,
763763
vert: bool | None = ...,
764764
widths: float | ArrayLike = ...,
765765
showmeans: bool = ...,

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4142,7 +4142,7 @@ def triplot(*args, **kwargs):
41424142
def violinplot(
41434143
dataset: ArrayLike | Sequence[ArrayLike],
41444144
positions: ArrayLike | None = None,
4145-
orientation: Literal["vertical", "horizontal"] | None = "vertical",
4145+
orientation: Literal["vertical", "horizontal"] = "vertical",
41464146
vert: bool | None = None,
41474147
widths: float | ArrayLike = 0.5,
41484148
showmeans: bool = False,

0 commit comments

Comments
 (0)