Skip to content

Commit 156dc1a

Browse files
committed
Update function args
1 parent bfff272 commit 156dc1a

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

stubs/appdirs/appdirs.pyi

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22
from _typeshed import StrPath
3-
from typing import Final
3+
from typing import Final, Literal
44

55
if sys.platform == "win32":
66
from ctypes import windll as windll
@@ -9,27 +9,28 @@ __version__: Final[str]
99
__version_info__: Final[tuple[int, int, int]]
1010
unicode = str
1111
system: Final[str]
12+
PY3: Literal[True]
1213

1314
def user_data_dir(
1415
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, roaming: bool = False
1516
) -> StrPath: ...
1617
def site_data_dir(
17-
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, roaming: bool = False
18+
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, multipath: bool = False
1819
) -> StrPath: ...
1920
def user_config_dir(
2021
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, roaming: bool = False
2122
) -> StrPath: ...
2223
def site_config_dir(
23-
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, roaming: bool = False
24+
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, multipath: bool = False
2425
) -> StrPath: ...
2526
def user_cache_dir(
26-
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, roaming: bool = False
27+
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, opinion: bool = True
2728
) -> StrPath: ...
2829
def user_state_dir(
2930
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, roaming: bool = False
3031
) -> StrPath: ...
3132
def user_log_dir(
32-
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, roaming: bool = False
33+
appname: StrPath | None = None, appauthor: StrPath | None = None, version: StrPath | None = None, opinion: bool = True
3334
) -> StrPath: ...
3435

3536
class AppDirs:

0 commit comments

Comments
 (0)