Skip to content

Commit af827f5

Browse files
committed
rebase on readers.standalone
1 parent ca584ba commit af827f5

File tree

1 file changed

+5
-8
lines changed
  • stubs/docutils/docutils/readers

1 file changed

+5
-8
lines changed

stubs/docutils/docutils/readers/pep.pyi

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
__docformat__: str
22

3-
from typing import Any, ClassVar, Literal
3+
from typing import ClassVar, Literal, TypeVar
44

55
from docutils.parsers import Parser
66
from docutils.parsers.rst.states import Inliner
77
from docutils.readers import standalone
8-
from docutils.transforms import Transform
98

10-
class Reader(standalone.Reader):
9+
_S = TypeVar("_S")
1110

12-
supported: ClassVar[tuple[Literal["pep"]]]
11+
class Reader(standalone.Reader[_S]):
1312

14-
settings_spec: ClassVar[tuple[Any, ...]]
13+
supported: ClassVar[tuple[Literal["pep"]]]
1514

16-
config_section: ClassVar[str]
15+
config_section: ClassVar[Literal['pep reader']]
1716
config_section_dependencies: ClassVar[tuple[Literal['readers'], Literal['standalone reader']]]
1817

19-
def get_transforms(self) -> list[type[Transform]]: ...
20-
2118
settings_default_overrides: ClassVar[dict[str, int]]
2219

2320
inliner_class: ClassVar[type[Inliner]]

0 commit comments

Comments
 (0)