mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-20 04:37:04 +08:00
Use Incomplete instead of Any in __getattr__ (#8903)
This commit is contained in:
1 parent
ed4bc2b2e6
commit
ce4668a132
64 files changed
+157
-132
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import ast
|
||||
from _typeshed import Incomplete
|
||||
from argparse import Namespace
|
||||
from collections.abc import Generator, Iterable
|
||||
from typing import Any
|
||||
@@ -25,6 +26,6 @@ class NamingChecker:
|
||||
def run(self) -> Generator[tuple[int, int, str, type[Any]], None, None]: ...
|
||||
def tag_class_functions(self, cls_node: ast.ClassDef) -> None: ...
|
||||
def set_function_nodes_types(self, nodes: Iterable[ast.AST], ismetaclass: bool, late_decoration: dict[str, str]) -> None: ...
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete (other attributes are normally not accessed)
|
||||
def __getattr__(self, name: str) -> Incomplete: ... # incomplete (other attributes are normally not accessed)
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete (other attributes are normally not accessed)
|
||||
def __getattr__(name: str) -> Incomplete: ... # incomplete (other attributes are normally not accessed)
|
||||
Reference in new issue
Block a user