Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rich/highlighter.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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:
Expand Down