From 28b90d9bfd32e48593804d9e3563a77e1f51f06d Mon Sep 17 00:00:00 2001 From: Nathan Walters Date: Wed, 8 Mar 2023 01:45:47 -0800 Subject: [PATCH] Pygments: fix get_style_by_name return type (#9803) --- stubs/Pygments/pygments/styles/__init__.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/Pygments/pygments/styles/__init__.pyi b/stubs/Pygments/pygments/styles/__init__.pyi index 18906e415..77d42db8f 100644 --- a/stubs/Pygments/pygments/styles/__init__.pyi +++ b/stubs/Pygments/pygments/styles/__init__.pyi @@ -1,12 +1,12 @@ from _typeshed import Incomplete from collections.abc import Iterator, Mapping -from pygments.style import StyleMeta +from pygments.style import Style from pygments.util import ClassNotFound as ClassNotFound STYLE_MAP: Mapping[str, str] -def get_style_by_name(name) -> StyleMeta: ... +def get_style_by_name(name) -> type[Style]: ... def get_all_styles() -> Iterator[str]: ... # Having every style class here doesn't seem to be worth it