Skip to content

Commit 0238956

Browse files
authored
Add stubs for pep8-naming (#7030)
1 parent fabd842 commit 0238956

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

pyrightconfig.stricter.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"stubs/prettytable",
5050
"stubs/protobuf",
5151
"stubs/google-cloud-ndb",
52+
"stubs/pep8-naming",
5253
"stubs/psutil",
5354
"stubs/psycopg2",
5455
"stubs/Pygments",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pep8ext_naming.NamingChecker.__getattr__
2+
pep8ext_naming.NamingChecker.parse_options

stubs/pep8-naming/METADATA.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version = "0.12.*"

stubs/pep8-naming/pep8ext_naming.pyi

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import ast
2+
from argparse import Namespace
3+
from typing import Any
4+
5+
__version__: str
6+
7+
PYTHON_VERSION: tuple[int, int, int]
8+
PY2: bool
9+
CLASS_METHODS: frozenset[str]
10+
METACLASS_BASES: frozenset[str]
11+
METHOD_CONTAINER_NODES: set[ast.AST]
12+
13+
class NamingChecker:
14+
name: str
15+
version: str
16+
visitors: Any
17+
decorator_to_type: Any
18+
ignore_names: frozenset[str]
19+
parents: Any
20+
def __init__(self, tree: ast.AST, filename: str) -> None: ...
21+
@classmethod
22+
def add_options(cls, parser: Any) -> None: ...
23+
@classmethod
24+
def parse_options(cls, option: Namespace) -> None: ...
25+
def run(self): ...
26+
def __getattr__(self, name: str) -> Any: ... # incomplete (other attributes are normally not accessed)
27+
28+
def __getattr__(name: str) -> Any: ... # incomplete (other attributes are normally not accessed)

0 commit comments

Comments
 (0)