Skip to content

Commit 54a37d1

Browse files
authored
Add stubs for flake8_rst_docstrings (#7029)
1 parent 0238956 commit 54a37d1

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version = "0.2.*"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import ast
2+
from argparse import Namespace
3+
from collections.abc import Container
4+
from typing import Any, Generator
5+
6+
rst_prefix: str
7+
rst_fail_load: int
8+
rst_fail_lint: int
9+
code_mapping_info: dict[str, int]
10+
code_mapping_warning: dict[str, int]
11+
code_mapping_error: dict[str, int]
12+
code_mapping_severe: dict[str, int]
13+
code_mappings_by_level: dict[int, dict[str, int]]
14+
15+
def code_mapping(
16+
level: int, msg: str, extra_directives: Container[str], extra_roles: Container[str], default: int = ...
17+
) -> int: ...
18+
19+
class reStructuredTextChecker:
20+
name: str
21+
version: str
22+
tree: ast.AST
23+
filename: str
24+
def __init__(self, tree: ast.AST, filename: str = ...) -> None: ...
25+
@classmethod
26+
def add_options(cls, parser: Any) -> None: ...
27+
@classmethod
28+
def parse_options(cls, options: Namespace) -> None: ...
29+
def run(self) -> Generator[tuple[int, int, str, type[reStructuredTextChecker]], None, None]: ...

0 commit comments

Comments
 (0)