From 545061338e1d2b88c7d428e9a88691ce2e436e21 Mon Sep 17 00:00:00 2001 From: "Tab Atkins Jr." Date: Mon, 14 Jul 2025 12:23:40 -0700 Subject: [PATCH] RawTokenFormatter always returns bytes (#14412) --- stubs/Pygments/pygments/formatters/other.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/Pygments/pygments/formatters/other.pyi b/stubs/Pygments/pygments/formatters/other.pyi index e02007b00..b3f42c323 100644 --- a/stubs/Pygments/pygments/formatters/other.pyi +++ b/stubs/Pygments/pygments/formatters/other.pyi @@ -10,7 +10,7 @@ class NullFormatter(Formatter[_T]): filenames: Any def format(self, tokensource, outfile) -> None: ... -class RawTokenFormatter(Formatter[_T]): +class RawTokenFormatter(Formatter[bytes]): name: str aliases: Any filenames: Any