Skip to content

Commit bbcb3e0

Browse files
authored
[seaborn] Use Literal for figure orientation arguments (#16716)
1 parent 41757fa commit bbcb3e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎stubs/seaborn/seaborn/_core/plot.pyi‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class Plot:
115115
dpi: float | None = 96,
116116
facecolor: ColorType | Literal["auto"] | None = ...,
117117
edgecolor: ColorType | Literal["auto"] | None = ...,
118-
orientation: str = "portrait",
118+
orientation: Literal["landscape", "portrait"] = "portrait",
119119
format: str | None = None,
120120
bbox_inches: Literal["tight"] | Bbox | None = None,
121121
pad_inches: float | None = None,
@@ -140,7 +140,7 @@ class Plotter:
140140
dpi: float | None = 96,
141141
facecolor: ColorType | Literal["auto"] | None = ...,
142142
edgecolor: ColorType | Literal["auto"] | None = ...,
143-
orientation: str = "portrait",
143+
orientation: Literal["landscape", "portrait"] = "portrait",
144144
format: str | None = None,
145145
bbox_inches: Literal["tight"] | Bbox | None = None,
146146
pad_inches: float | None = None,

0 commit comments

Comments
 (0)