Complete send2trash stubs (#10504)

This commit is contained in:
Akuli
2023-07-25 13:31:17 +01:00
committed by GitHub
parent b325815f44
commit 38dc97ba71
5 changed files with 7 additions and 15 deletions
+1 -4
View File
@@ -1,10 +1,7 @@
from _typeshed import Incomplete, StrOrBytesPath
from _typeshed import StrOrBytesPath
from typing import Any
from .exceptions import TrashPermissionError as TrashPermissionError
# The list should be list[StrOrBytesPath] but that doesn't work because invariance
def send2trash(paths: list[Any] | StrOrBytesPath) -> None: ...
# Marked as incomplete because there are platform-specific plat_foo modules
def __getattr__(name: str) -> Incomplete: ...
+3
View File
@@ -0,0 +1,3 @@
from collections.abc import Iterable
def main(args: Iterable[str] | None = None) -> None: ...
-7
View File
@@ -1,7 +0,0 @@
from typing import Any
from typing_extensions import Literal
PY3: Literal[True]
text_type = str
binary_type = bytes
environb: Any