mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-25 05:11:09 +08:00
Pygments: fix get_style_by_name return type (#9803)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user