From 46bf55877d6973b508f1cae4e21496ba7d309045 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Wed, 1 Mar 2023 12:38:47 +0000 Subject: [PATCH] Add a docstring to Placeholder.variant --- src/textual/widgets/_placeholder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/textual/widgets/_placeholder.py b/src/textual/widgets/_placeholder.py index 6e990f3c8..8f6411e23 100644 --- a/src/textual/widgets/_placeholder.py +++ b/src/textual/widgets/_placeholder.py @@ -119,6 +119,8 @@ class Placeholder(Widget): self.styles.background = f"{next(Placeholder._COLORS)} 50%" self.variant = self.validate_variant(variant) + """The current variant of the placeholder.""" + # Set a cycle through the variants with the correct starting point. self._variants_cycle = cycle(_VALID_PLACEHOLDER_VARIANTS_ORDERED) while next(self._variants_cycle) != self.variant: