From e787a88f59ca482d97a426e6ddd1aba140dd01d6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 7 Aug 2023 01:37:37 +0100 Subject: [PATCH] [stubsabot] Bump Pygments to 2.16.* (#10536) Release: https://pypi.org/pypi/Pygments/2.16.1 Homepage: https://pygments.org Repository: https://github.com/pygments/pygments Changelog: https://github.com/pygments/pygments/blob/master/CHANGES Diff: https://github.com/pygments/pygments/compare/2.15.1...2.16.1 Stubsabot analysis of the diff between the two releases: - 12 public Python files have been added. - 0 files included in typeshed's stubs have been deleted. - 6 files included in typeshed's stubs have been modified or renamed: `pygments/__init__.py`, `pygments/formatters/img.py`, `pygments/lexer.py`, `pygments/sphinxext.py`, `pygments/styles/__init__.py`, `pygments/token.py`. - Total lines of Python code added: 2942. - Total lines of Python code deleted: 477. Co-authored-by: stubsabot <> Co-authored-by: Alex Waygood --- stubs/Pygments/METADATA.toml | 2 +- stubs/Pygments/pygments/formatters/img.pyi | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stubs/Pygments/METADATA.toml b/stubs/Pygments/METADATA.toml index f8fb89d88..c5330dbb0 100644 --- a/stubs/Pygments/METADATA.toml +++ b/stubs/Pygments/METADATA.toml @@ -1,4 +1,4 @@ -version = "2.15.*" +version = "2.16.*" upstream_repository = "https://github.com/pygments/pygments" requires = ["types-docutils", "types-setuptools"] partial_stub = true diff --git a/stubs/Pygments/pygments/formatters/img.pyi b/stubs/Pygments/pygments/formatters/img.pyi index 66b29e852..67310cfd2 100644 --- a/stubs/Pygments/pygments/formatters/img.pyi +++ b/stubs/Pygments/pygments/formatters/img.pyi @@ -12,10 +12,12 @@ class FontManager: font_size: Any fonts: Any encoding: Any + variable: bool def __init__(self, font_name, font_size: int = 14) -> None: ... def get_char_size(self): ... def get_text_size(self, text): ... def get_font(self, bold, oblique): ... + def get_style(self, style): ... class ImageFormatter(Formatter[_T]): name: str