Skip to content

Commit 21efe1b

Browse files
committed
docs(color): clarify hex properties are uppercase
Currently the examples in the hex property docstrings are lowercase, but the formatted hexadecimal numbers are uppercase.
1 parent c0cda89 commit 21efe1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/textual/color.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def brightness(self) -> float:
301301
def hex(self) -> str:
302302
"""The color in CSS hex form, with 6 digits for RGB, and 8 digits for RGBA.
303303
304-
For example, `"#46b3de"` for an RGB color, or `"#3342457f"` for a color with alpha.
304+
For example, `"#46B3DE"` for an RGB color, or `"#3342457F"` for a color with alpha.
305305
"""
306306
r, g, b, a, ansi, _ = self.clamped
307307
if ansi is not None:
@@ -316,7 +316,7 @@ def hex(self) -> str:
316316
def hex6(self) -> str:
317317
"""The color in CSS hex form, with 6 digits for RGB. Alpha is ignored.
318318
319-
For example, `"#46b3de"`.
319+
For example, `"#46B3DE"`.
320320
"""
321321
r, g, b, _a, _, _ = self.clamped
322322
return f"#{r:02X}{g:02X}{b:02X}"

0 commit comments

Comments
 (0)