firestryker's picture
download
raw
327 Bytes
from __future__ import annotations
from typing import Literal
def dummy_highlighter(source: str, lexer: Literal["diff", "python"] = "python") -> str:
"""Dummy highlighter that returns the text unprocessed.
Needed for _notin_text, as the diff gets post-processed to only show the "+" part.
"""
return source

Xet Storage Details

Size:
327 Bytes
·
Xet hash:
7ed779dea998b9a6c594185014f5fdadd5419d62015b52ddbee74ba9036379c9

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.