Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions stubs/appdirs/METADATA.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version = "1.4.*"
upstream_repository = "https://github.com/ActiveState/appdirs"
63 changes: 63 additions & 0 deletions stubs/appdirs/appdirs.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import sys
from _typeshed import StrPath
from typing import Final, Literal

if sys.platform == "win32":
from ctypes import windll as windll

__version__: Final[str]
__version_info__: Final[tuple[int, int, int]]
unicode = str
system: Final[str]
PY3: Literal[True]

def user_data_dir(
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, roaming: bool = False
) -> StrPath: ...
def site_data_dir(
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, multipath: bool = False
) -> StrPath: ...
def user_config_dir(
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, roaming: bool = False
) -> StrPath: ...
def site_config_dir(
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, multipath: bool = False
) -> StrPath: ...
def user_cache_dir(
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, opinion: bool = True
) -> StrPath: ...
def user_state_dir(
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, roaming: bool = False
) -> StrPath: ...
def user_log_dir(
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, opinion: bool = True
) -> StrPath: ...

class AppDirs:
appname: StrPath | None
appauthor: StrPath | None
version: StrPath | None
roaming: bool
multipath: bool
def __init__(
self,
appname: StrPath | None = None,
appauthor: StrPath | None = None,
version: StrPath | None = None,
roaming: bool = False,
multipath: bool = False,
) -> None: ...
@property
def user_data_dir(self) -> StrPath: ...
@property
def site_data_dir(self) -> StrPath: ...
@property
def user_config_dir(self) -> StrPath: ...
@property
def site_config_dir(self) -> StrPath: ...
@property
def user_cache_dir(self) -> StrPath: ...
@property
def user_state_dir(self) -> StrPath: ...
@property
def user_log_dir(self) -> StrPath: ...