Use Incomplete instead of Any in __getattr__ (#8903)

This commit is contained in:
Nikita Sobolev
2022-10-15 20:54:21 +03:00
committed by GitHub
parent ed4bc2b2e6
commit ce4668a132
64 changed files with 157 additions and 132 deletions

View File

@@ -1,5 +1,6 @@
import argparse
import ast
from _typeshed import Incomplete
from collections.abc import Generator
from typing import Any, ClassVar
@@ -13,4 +14,4 @@ class Plugin:
def __init__(self, tree: ast.AST) -> None: ...
def run(self) -> Generator[tuple[int, int, str, type[Any]], None, None]: ...
def __getattr__(name: str) -> Any: ... # incomplete (other attributes are normally not accessed)
def __getattr__(name: str) -> Incomplete: ... # incomplete (other attributes are normally not accessed)