nzbToMedia/libs/win/path/py37compat.pyi
2022-11-29 00:44:47 -05:00

18 lines
574 B
Python

import os
from types import ModuleType
from typing import Any, AnyStr, Callable, Dict, Tuple, overload
def best_realpath(module: ModuleType) -> Callable[[AnyStr], AnyStr]: ...
@overload
def realpath_backport(path: str) -> str: ...
@overload
def realpath_backport(path: bytes) -> bytes: ...
@overload
def _resolve_path(path: str, rest: str, seen: Dict[Any, Any]) -> Tuple[str, bool]: ...
@overload
def _resolve_path(
path: bytes, rest: bytes, seen: Dict[Any, Any]
) -> Tuple[bytes, bool]: ...
def lru_cache(user_function: Callable[..., Any]) -> Callable[..., Any]: ...