mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Annotate return type of pygments.plugin.iter_entry_points (#6697)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
version = "2.9.*"
|
||||
requires = ["types-docutils"]
|
||||
requires = ["types-docutils", "types-setuptools"]
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from typing import Any, Generator, Iterable
|
||||
from typing import Generator, Iterable
|
||||
|
||||
from pkg_resources import EntryPoint
|
||||
from pygments.filter import Filter
|
||||
from pygments.formatter import Formatter
|
||||
from pygments.lexer import Lexer
|
||||
@@ -10,7 +11,7 @@ FORMATTER_ENTRY_POINT: str
|
||||
STYLE_ENTRY_POINT: str
|
||||
FILTER_ENTRY_POINT: str
|
||||
|
||||
def iter_entry_points(group_name: str) -> Iterable[Any]: ...
|
||||
def iter_entry_points(group_name: str) -> Iterable[EntryPoint]: ...
|
||||
def find_plugin_lexers() -> Generator[type[Lexer], None, None]: ...
|
||||
def find_plugin_formatters() -> Generator[tuple[str, type[Formatter]], None, None]: ...
|
||||
def find_plugin_styles() -> Generator[tuple[str, type[Style]], None, None]: ...
|
||||
|
||||
Reference in New Issue
Block a user