Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/_pytest/assertion/_typing.py: 0%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

7 statements  

1from __future__ import annotations 

2 

3from typing import Literal 

4from typing import Protocol 

5 

6 

7_AssertionTextDiffStyle = Literal["ndiff", "block"] 

8 

9 

10class _HighlightFunc(Protocol): # noqa: PYI046 

11 def __call__(self, source: str, lexer: Literal["diff", "python"] = "python") -> str: 

12 """Apply highlighting to the given source."""