Skip to content

Commit ba68936

Browse files
authored
Merge pull request #6045 from TomJGooding/refactor-label-rename-renderable-to-content
refactor(label): rename renderable to content
2 parents 5c42ddd + ba10f55 commit ba68936

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2424
### Changed
2525

2626
- Breaking change: The `renderable` property on the `Static` widget has been changed to `content`. https://github.com/Textualize/textual/pull/6041
27+
- Breaking change: Renamed `Label` constructor argument `renderable` to `content` for consistency https://github.com/Textualize/textual/pull/6045
2728

2829
# [5.3.0] - 2025-08-07
2930

src/textual/widgets/_label.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ class Label(Static):
4848

4949
def __init__(
5050
self,
51-
# TODO: Should probably be renamed to `content`.
52-
renderable: VisualType = "",
51+
content: VisualType = "",
5352
*,
5453
variant: LabelVariant | None = None,
5554
expand: bool = False,
@@ -61,7 +60,7 @@ def __init__(
6160
disabled: bool = False,
6261
) -> None:
6362
super().__init__(
64-
renderable,
63+
content,
6564
expand=expand,
6665
shrink=shrink,
6766
markup=markup,

0 commit comments

Comments
 (0)