mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Add stubs for flake8-typing-imports (#6556)
This commit is contained in:
1
stubs/flake8-typing-imports/METADATA.toml
Normal file
1
stubs/flake8-typing-imports/METADATA.toml
Normal file
@@ -0,0 +1 @@
|
||||
version = "1.11.*"
|
||||
15
stubs/flake8-typing-imports/flake8_typing_imports.pyi
Normal file
15
stubs/flake8-typing-imports/flake8_typing_imports.pyi
Normal 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)
|
||||
Reference in New Issue
Block a user