mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-28 06:36:54 +08:00
Add stubs for pep8-naming (#7030)
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
"stubs/prettytable",
|
||||
"stubs/protobuf",
|
||||
"stubs/google-cloud-ndb",
|
||||
"stubs/pep8-naming",
|
||||
"stubs/psutil",
|
||||
"stubs/psycopg2",
|
||||
"stubs/Pygments",
|
||||
|
||||
2
stubs/pep8-naming/@tests/stubtest_allowlist.txt
Normal file
2
stubs/pep8-naming/@tests/stubtest_allowlist.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
pep8ext_naming.NamingChecker.__getattr__
|
||||
pep8ext_naming.NamingChecker.parse_options
|
||||
1
stubs/pep8-naming/METADATA.toml
Normal file
1
stubs/pep8-naming/METADATA.toml
Normal file
@@ -0,0 +1 @@
|
||||
version = "0.12.*"
|
||||
28
stubs/pep8-naming/pep8ext_naming.pyi
Normal file
28
stubs/pep8-naming/pep8ext_naming.pyi
Normal 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)
|
||||
Reference in New Issue
Block a user