We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 733e506 commit 21d0916Copy full SHA for 21d0916
src/textual/color.py
@@ -80,7 +80,7 @@ class HSV(NamedTuple):
80
h: float
81
"""Hue in range 0 to 1."""
82
s: float
83
- """Saturation in range 0 to 1"""
+ """Saturation in range 0 to 1."""
84
v: float
85
"""Value un range 0 to 1."""
86
@@ -543,7 +543,7 @@ def get_contrast_text(self, alpha: float = 0.95) -> Color:
543
alpha: An alpha value to apply to the result.
544
545
Returns:
546
- A new color, either an off-white or off-black
+ A new color, either an off-white or off-black.
547
"""
548
return (WHITE if self.brightness < 0.5 else BLACK).with_alpha(alpha)
549
0 commit comments