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.
2 parents 44b5298 + 233a142 commit a913540Copy full SHA for a913540
src/textual/widgets/_digits.py
@@ -6,6 +6,7 @@
6
7
if TYPE_CHECKING:
8
from textual.app import RenderResult
9
+
10
from textual.geometry import Size
11
from textual.renderables.digits import Digits as DigitsRenderable
12
from textual.widget import Widget
@@ -59,7 +60,7 @@ def update(self, value: str) -> None:
59
60
value: New value to display.
61
62
Raises:
- ValueError: If the value isn't a `str`.
63
+ TypeError: If the value isn't a `str`.
64
"""
65
if not isinstance(value, str):
66
raise TypeError("value must be a str")
0 commit comments