diff --git a/rich/highlighter.py b/rich/highlighter.py index e4c462e2b6..c86c3dacd7 100644 --- a/rich/highlighter.py +++ b/rich/highlighter.py @@ -1,6 +1,6 @@ import re from abc import ABC, abstractmethod -from typing import List, Union +from typing import ClassVar, Union from .text import Span, Text @@ -61,7 +61,7 @@ def highlight(self, text: Text) -> None: class RegexHighlighter(Highlighter): """Applies highlighting from a list of regular expressions.""" - highlights: List[str] = [] + highlights: ClassVar[tuple[str, ...]] = () base_style: str = "" def highlight(self, text: Text) -> None: