Skip to content

Commit

Permalink
typing tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Oct 1, 2024
1 parent fd7b326 commit ff52f68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rich/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
List,
NamedTuple,
Optional,
Pattern,
Tuple,
Union,
)
Expand Down Expand Up @@ -591,7 +592,7 @@ def extend_style(self, spaces: int) -> None:

def highlight_regex(
self,
re_highlight: Union[re.Pattern[str], str],
re_highlight: Union[Pattern[str], str],
style: Optional[Union[GetStyleCallable, StyleType]] = None,
*,
style_prefix: str = "",
Expand Down

0 comments on commit ff52f68

Please sign in to comment.