8000 Export TextType into the docs. (#3257) · Textualize/rich@26152e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 26152e9

Browse files
Export TextType into the docs. (#3257)
1 parent fd98182 commit 26152e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/source/reference/text.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ rich.text
22
=========
33

44
.. automodule:: rich.text
5-
:members: Text
5+
:members: Text, TextType
66

rich/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
_re_whitespace = re.compile(r"\s+$")
3939

4040
TextType = Union[str, "Text"]
41-
"""A plain string or a [Text][rich.text.Text] instance."""
41+
"""A plain string or a :class:`Text` instance."""
4242

4343
GetStyleCallable = Callable[[str], Optional[StyleType]]
4444

0 commit comments

Comments
 (0)
0