mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 12:21:27 +08:00
Use Incomplete instead of Any in __getattr__ (#8903)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from _typeshed import StrOrBytesPath
|
||||
from _typeshed import Incomplete, StrOrBytesPath
|
||||
from typing import Any
|
||||
|
||||
from .exceptions import TrashPermissionError as TrashPermissionError
|
||||
@@ -7,4 +7,4 @@ from .exceptions import TrashPermissionError as TrashPermissionError
|
||||
def send2trash(paths: list[Any] | StrOrBytesPath) -> None: ...
|
||||
|
||||
# Marked as incomplete because there are platform-specific plat_foo modules
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
Reference in New Issue
Block a user