Skip to content

Commit a913540

Browse files
authored
Merge pull request #5310 from TomJGooding/docs-digits-fix-update-docstring-raises-type
docs(digits): fix update docstring raises type
2 parents 44b5298 + 233a142 commit a913540

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/textual/widgets/_digits.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
if TYPE_CHECKING:
88
from textual.app import RenderResult
9+
910
from textual.geometry import Size
1011
from textual.renderables.digits import Digits as DigitsRenderable
1112
from textual.widget import Widget
@@ -59,7 +60,7 @@ def update(self, value: str) -> None:
5960
value: New value to display.
6061
6162
Raises:
62-
ValueError: If the value isn't a `str`.
63+
TypeError: If the value isn't a `str`.
6364
"""
6465
if not isinstance(value, str):
6566
raise TypeError("value must be a str")

0 commit comments

Comments
 (0)