Skip to content

Commit ff52f68

Browse files
committed
typing tweak
1 parent fd7b326 commit ff52f68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rich/text.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
List,
1212
NamedTuple,
1313
Optional,
14+
Pattern,
1415
Tuple,
1516
Union,
1617
)
@@ -591,7 +592,7 @@ def extend_style(self, spaces: int) -> None:
591592

592593
def highlight_regex(
593594
self,
594-
re_highlight: Union[re.Pattern[str], str],
595+
re_highlight: Union[Pattern[str], str],
595596
style: Optional[Union[GetStyleCallable, StyleType]] = None,
596597
*,
597598
style_prefix: str = "",

0 commit comments

Comments
 (0)