mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
Use Incomplete instead of Any in __getattr__ (#8903)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import argparse
|
||||
import ast
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Sequence
|
||||
from typing import Any
|
||||
|
||||
@@ -23,6 +24,6 @@ class BugBearChecker:
|
||||
max_line_length: int = ...,
|
||||
options: argparse.Namespace | None = ...,
|
||||
) -> 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: ...
|
||||
|
||||
Reference in New Issue
Block a user