Create send2trash stubs (#6000)

This commit is contained in:
Akuli
2021-09-03 23:51:03 +03:00
committed by GitHub
parent c0030b2b12
commit 832a24c8a1
6 changed files with 21 additions and 0 deletions

View File

@@ -55,6 +55,7 @@
"stubs/redis",
"stubs/requests",
"stubs/selenium",
"stubs/Send2Trash",
"stubs/simplejson",
"stubs/slumber",
"stubs/stripe",

View File

@@ -0,0 +1 @@
version = "1.8"

View File

@@ -0,0 +1,10 @@
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) -> Any: ... # incomplete

View File

@@ -0,0 +1,6 @@
from typing import Any
PY3: Any
text_type = str
binary_type = bytes
environb: Any

View File

@@ -0,0 +1,2 @@
class TrashPermissionError(PermissionError):
def __init__(self, filename) -> None: ...

View File

@@ -0,0 +1 @@
def preprocess_paths(paths): ...