Complete send2trash stubs (#10504)

This commit is contained in:
Akuli
2023-07-25 15:31:17 +03:00
committed by GitHub
parent b325815f44
commit 38dc97ba71
5 changed files with 7 additions and 15 deletions

View File

@@ -0,0 +1,3 @@
# Modules that are not meant to be imported by users
send2trash.mac
send2trash.compat

View File

@@ -1,6 +1,2 @@
version = "1.8.*"
upstream_repository = "https://github.com/arsenetar/send2trash"
partial_stub = true
[tool.stubtest]
ignore_missing_stub = true

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: ...

View File

@@ -0,0 +1,3 @@
from collections.abc import Iterable
def main(args: Iterable[str] | None = None) -> None: ...

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