mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 08:47:39 +08:00
Pygments: add pygments.__version__ (#8241)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user