mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Complete send2trash stubs (#10504)
This commit is contained in:
3
stubs/Send2Trash/@tests/stubtest_allowlist.txt
Normal file
3
stubs/Send2Trash/@tests/stubtest_allowlist.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
# Modules that are not meant to be imported by users
|
||||
send2trash.mac
|
||||
send2trash.compat
|
||||
@@ -1,6 +1,2 @@
|
||||
version = "1.8.*"
|
||||
upstream_repository = "https://github.com/arsenetar/send2trash"
|
||||
partial_stub = true
|
||||
|
||||
[tool.stubtest]
|
||||
ignore_missing_stub = true
|
||||
|
||||
@@ -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
stubs/Send2Trash/send2trash/__main__.pyi
Normal file
3
stubs/Send2Trash/send2trash/__main__.pyi
Normal file
@@ -0,0 +1,3 @@
|
||||
from collections.abc import Iterable
|
||||
|
||||
def main(args: Iterable[str] | None = None) -> None: ...
|
||||
@@ -1,7 +0,0 @@
|
||||
from typing import Any
|
||||
from typing_extensions import Literal
|
||||
|
||||
PY3: Literal[True]
|
||||
text_type = str
|
||||
binary_type = bytes
|
||||
environb: Any
|
||||
Reference in New Issue
Block a user