Debian Codegraph @

src/_pytest/assertion/_typing.py

raw
1 from __future__ import annotations
2
3 from typing import Literal
4 from typing import Protocol
5
6
7 _AssertionTextDiffStyle = Literal["ndiff", "block"]
8
9
10 class _HighlightFunc(Protocol): # noqa: PYI046
11 def __call__(self, source: str, lexer: Literal["diff", "python"] = "python") -> str:
12 """Apply highlighting to the given source."""