Skip to content

Commit 98da797

Browse files
authored
Merge pull request #5792 from TomJGooding/docs-color-fix-hsl-order-in-docstrings
docs(color): fix hsl order in docstrings
2 parents dfc2b9d + e2c1f67 commit 98da797

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/textual/color.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454

5555
class HSL(NamedTuple):
56-
"""A color in HLS (Hue, Saturation, Lightness) format."""
56+
"""A color in HSL (Hue, Saturation, Lightness) format."""
5757

5858
h: float
5959
"""Hue in range 0 to 1."""
@@ -199,12 +199,12 @@ def from_rich_color(
199199

200200
@classmethod
201201
def from_hsl(cls, h: float, s: float, l: float) -> Color:
202-
"""Create a color from HLS components.
202+
"""Create a color from HSL components.
203203
204204
Args:
205205
h: Hue.
206-
l: Lightness.
207206
s: Saturation.
207+
l: Lightness.
208208
209209
Returns:
210210
A new color.

0 commit comments

Comments
 (0)