Pygments: add pygments.__version__ (#8241)

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2022-07-05 12:26:08 -07:00
committed by GitHub
parent c23cb7be75
commit db8f3c8f50

View File

@@ -5,6 +5,9 @@ from pygments.formatter import Formatter
_T = TypeVar("_T", str, bytes)
__version__: str
__all__ = ["lex", "format", "highlight"]
def lex(code, lexer): ...
@overload
def format(tokens, formatter: Formatter[_T], outfile: SupportsWrite[_T]) -> None: ...