mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Add stubs for flake8-docstrings (#6507)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
1
stubs/flake8-docstrings/METADATA.toml
Normal file
1
stubs/flake8-docstrings/METADATA.toml
Normal file
@@ -0,0 +1 @@
|
||||
version = "1.6.*"
|
||||
19
stubs/flake8-docstrings/flake8_docstrings.pyi
Normal file
19
stubs/flake8-docstrings/flake8_docstrings.pyi
Normal file
@@ -0,0 +1,19 @@
|
||||
import argparse
|
||||
import ast
|
||||
from typing import Any, ClassVar, Generator, Iterable, Type
|
||||
|
||||
class pep257Checker:
|
||||
name: ClassVar[str]
|
||||
version: ClassVar[str]
|
||||
tree: ast.AST
|
||||
filename: str
|
||||
checker: Any
|
||||
source: str
|
||||
def __init__(self, tree: ast.AST, filename: str, lines: Iterable[str]) -> None: ...
|
||||
@classmethod
|
||||
def add_options(cls, parser: Any) -> None: ...
|
||||
@classmethod
|
||||
def parse_options(cls, options: argparse.Namespace) -> None: ...
|
||||
def run(self) -> Generator[tuple[int, int, str, Type[Any]], None, None]: ...
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
Reference in New Issue
Block a user