Update stubs

This commit is contained in:
Trinh Anh Ngoc
2022-10-08 11:18:53 +07:00
parent 09d89a7c60
commit e8bf62694f

View File

@@ -1,18 +1,19 @@
import ctypes import ctypes
from typing import Any from re import Pattern
from typing import Any, Callable, Generator, Iterable, Iterator
from typing.io import IO
_logger: Any WINDOWS_RESERVED: Pattern
WINDOWS_RESERVED: Any
def clean_filename(name, replacement: str = ...): ... def clean_filename(name: str, replacement: str = ...) -> str: ...
def listdir(dir, recursive: bool = ...): ... def listdir(dir: str, recursive: bool = ...) -> Iterable[str]: ...
def walksymlinks(top, topdown: bool = ..., onerror: Any | None = ...): ... def walksymlinks(top: str, topdown: bool = ..., onerror: Callable[[OSError], Any] | None = ...) -> Iterator[tuple[str, list[str], list[str]]]: ...
def tempdir() -> None: ... def tempdir() -> Generator[str, None, None]: ...
def zip_dir(path, stream, include_dir: bool = ..., fnct_sort: Any | None = ...) -> None: ... def zip_dir(path: str, stream: str | IO[bytes], include_dir: bool = ..., fnct_sort: Callable | None = ...) -> None: ...
getppid: Any getppid: Callable[[], int]
is_running_as_nt_service: Any is_running_as_nt_service: Callable[[], bool]
_TH32CS_SNAPPROCESS: int _TH32CS_SNAPPROCESS: int
class _PROCESSENTRY32(ctypes.Structure): class _PROCESSENTRY32(ctypes.Structure):
_fields_: Any _fields_: list[tuple[str, Any]]