diff --git a/src/textual/widgets/_button.py b/src/textual/widgets/_button.py index ec143323c..156ba3f19 100644 --- a/src/textual/widgets/_button.py +++ b/src/textual/widgets/_button.py @@ -145,7 +145,7 @@ class Button(Static, can_focus=True): ACTIVE_EFFECT_DURATION = 0.3 """When buttons are clicked they get the `-active` class for this duration (in seconds)""" - label: reactive[RenderableType] = reactive("") + label: reactive[RenderableType] = reactive[RenderableType]("") """The text label that appears within the button.""" variant = reactive("default") diff --git a/src/textual/widgets/_placeholder.py b/src/textual/widgets/_placeholder.py index 970e4465b..f903d12c7 100644 --- a/src/textual/widgets/_placeholder.py +++ b/src/textual/widgets/_placeholder.py @@ -72,7 +72,7 @@ class Placeholder(Widget): _COLORS = cycle(_PLACEHOLDER_BACKGROUND_COLORS) _SIZE_RENDER_TEMPLATE = "[b]{} x {}[/b]" - variant: Reactive[PlaceholderVariant] = reactive("default") + variant: Reactive[PlaceholderVariant] = reactive[PlaceholderVariant]("default") _renderables: dict[PlaceholderVariant, str]