mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Use Incomplete instead of Any in __getattr__ (#8903)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Sequence
|
||||
from typing import Any
|
||||
from typing_extensions import Literal
|
||||
|
||||
DEFAULT_STRATEGY: Literal[0]
|
||||
@@ -9,7 +9,7 @@ RLE: Literal[3]
|
||||
FIXED: Literal[4]
|
||||
|
||||
class _Path:
|
||||
def __getattr__(self, item: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, item: str) -> Incomplete: ...
|
||||
|
||||
def path(__x: Sequence[tuple[float, float]] | Sequence[float]) -> _Path: ...
|
||||
def __getattr__(__name: str) -> Any: ... # incomplete
|
||||
def __getattr__(__name: str) -> Incomplete: ...
|
||||
|
||||
Reference in New Issue
Block a user