Add stubs for flake8-bugbear (#6543)

This commit is contained in:
kasium
2021-12-08 18:02:47 +01:00
committed by GitHub
parent 1718b77a1a
commit c569be6947
3 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1 @@
bugbear.BugBearChecker.__getattr__

View File

@@ -0,0 +1 @@
version = "21.11.29"

View File

@@ -0,0 +1,27 @@
import argparse
import ast
from typing import Any, Sequence
class BugBearChecker:
name: str
version: str
tree: ast.AST | None
filename: str
lines: Sequence[str] | None
max_line_length: int
visitor: ast.NodeVisitor
options: argparse.Namespace | None
def run(self) -> None: ...
@staticmethod
def add_options(optmanager: Any) -> None: ...
def __init__(
self,
tree: ast.AST | None = ...,
filename: str = ...,
lines: Sequence[str] | None = ...,
max_line_length: int = ...,
options: argparse.Namespace | None = ...,
) -> None: ...
def __getattr__(self, name: str) -> Any: ... # incomplete (other attributes are normally not accessed)
def __getattr__(name: str) -> Any: ... # incomplete (other attributes are normally not accessed)