Skip to content

Commit

Permalink
Export TextType into the docs. (#3257)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigogiraoserrao authored Jan 31, 2024
1 parent fd98182 commit 26152e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/reference/text.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ rich.text
=========

.. automodule:: rich.text
:members: Text
:members: Text, TextType

2 changes: 1 addition & 1 deletion rich/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
_re_whitespace = re.compile(r"\s+$")

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

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

Expand Down

0 comments on commit 26152e9

Please sign in to comment.