Skip to content

Commit 28b90d9

Browse files
authored
Pygments: fix get_style_by_name return type (#9803)
1 parent a1979df commit 28b90d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/Pygments/pygments/styles/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from _typeshed import Incomplete
22
from collections.abc import Iterator, Mapping
33

4-
from pygments.style import StyleMeta
4+
from pygments.style import Style
55
from pygments.util import ClassNotFound as ClassNotFound
66

77
STYLE_MAP: Mapping[str, str]
88

9-
def get_style_by_name(name) -> StyleMeta: ...
9+
def get_style_by_name(name) -> type[Style]: ...
1010
def get_all_styles() -> Iterator[str]: ...
1111

1212
# Having every style class here doesn't seem to be worth it

0 commit comments

Comments
 (0)