From 26152e9cc95eef9c8f363d7bf1dfda426275348d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Wed, 31 Jan 2024 13:05:27 +0000 Subject: [PATCH] Export TextType into the docs. (#3257) --- docs/source/reference/text.rst | 2 +- rich/text.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/reference/text.rst b/docs/source/reference/text.rst index 76b41f4bb..0b929e44b 100644 --- a/docs/source/reference/text.rst +++ b/docs/source/reference/text.rst @@ -2,5 +2,5 @@ rich.text ========= .. automodule:: rich.text - :members: Text + :members: Text, TextType diff --git a/rich/text.py b/rich/text.py index 7091e4291..7b32967f7 100644 --- a/rich/text.py +++ b/rich/text.py @@ -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]]