Add stubs for flake8-typing-imports (#6556)

This commit is contained in:
kasium
2021-12-10 11:50:46 +01:00
committed by GitHub
parent 7d4d58925a
commit c96892f3b9
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1 @@
version = "1.11.*"

View File

@@ -0,0 +1,15 @@
import argparse
import ast
from typing import Any, ClassVar, Generator, Type
class Plugin:
name: ClassVar[str]
version: ClassVar[str]
@staticmethod
def add_options(option_manager: Any) -> None: ...
@classmethod
def parse_options(cls, options: argparse.Namespace) -> None: ...
def __init__(self, tree: ast.AST) -> None: ...
def run(self) -> Generator[tuple[int, int, str, Type[Any]], None, None]: ...
def __getattr__(name: str) -> Any: ... # incomplete (other attributes are normally not accessed)