Remove Send2Trash from pyright's exclude (#8944)

This commit is contained in:
Nikita Sobolev
2022-11-03 23:41:37 +03:00
committed by GitHub
parent e68567a1b4
commit 1d37b54441
3 changed files with 9 additions and 3 deletions

View File

@@ -68,7 +68,6 @@
"stubs/PyYAML",
"stubs/redis",
"stubs/requests",
"stubs/Send2Trash",
"stubs/setuptools",
"stubs/slumber",
"stubs/SQLAlchemy",

View File

@@ -1,2 +1,5 @@
from typing import Any
class TrashPermissionError(PermissionError):
def __init__(self, filename) -> None: ...
# Typed the same as `filename` in `PermissionError`:
def __init__(self, filename: Any) -> None: ...

View File

@@ -1 +1,5 @@
def preprocess_paths(paths): ...
from _typeshed import StrOrBytesPath
from typing import Any
# Should be consistent with `__init__.py`
def preprocess_paths(paths: list[Any] | StrOrBytesPath) -> list[str | bytes]: ...