Add stubs for pep8-naming (#7030)

This commit is contained in:
kasium
2022-01-25 08:39:16 +01:00
committed by GitHub
parent fabd842857
commit 0238956f90
4 changed files with 32 additions and 0 deletions

View File

@@ -49,6 +49,7 @@
"stubs/prettytable",
"stubs/protobuf",
"stubs/google-cloud-ndb",
"stubs/pep8-naming",
"stubs/psutil",
"stubs/psycopg2",
"stubs/Pygments",

View File

@@ -0,0 +1,2 @@
pep8ext_naming.NamingChecker.__getattr__
pep8ext_naming.NamingChecker.parse_options

View File

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

View File

@@ -0,0 +1,28 @@
import ast
from argparse import Namespace
from typing import Any
__version__: str
PYTHON_VERSION: tuple[int, int, int]
PY2: bool
CLASS_METHODS: frozenset[str]
METACLASS_BASES: frozenset[str]
METHOD_CONTAINER_NODES: set[ast.AST]
class NamingChecker:
name: str
version: str
visitors: Any
decorator_to_type: Any
ignore_names: frozenset[str]
parents: Any
def __init__(self, tree: ast.AST, filename: str) -> None: ...
@classmethod
def add_options(cls, parser: Any) -> None: ...
@classmethod
def parse_options(cls, option: Namespace) -> None: ...
def run(self): ...
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)