mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-18 15:54:13 +08:00
Add stubs for flake8-bugbear (#6543)
This commit is contained in:
1
stubs/flake8-bugbear/@tests/stubtest_allowlist.txt
Normal file
1
stubs/flake8-bugbear/@tests/stubtest_allowlist.txt
Normal file
@@ -0,0 +1 @@
|
||||
bugbear.BugBearChecker.__getattr__
|
||||
1
stubs/flake8-bugbear/METADATA.toml
Normal file
1
stubs/flake8-bugbear/METADATA.toml
Normal file
@@ -0,0 +1 @@
|
||||
version = "21.11.29"
|
||||
27
stubs/flake8-bugbear/bugbear.pyi
Normal file
27
stubs/flake8-bugbear/bugbear.pyi
Normal 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)
|
||||
Reference in New Issue
Block a user