mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-17 13:59:45 +08:00
Add stubs for xdgenvpy (#12615)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
xdgenvpy.__main__
|
||||
@@ -0,0 +1,2 @@
|
||||
version = "2.4.*"
|
||||
upstream_repository = "https://gitlab.com/deliberist-group/xdgenvpy"
|
||||
@@ -0,0 +1,3 @@
|
||||
from xdgenvpy.xdgenv import XDG as XDG, XDGPackage as XDGPackage, XDGPedanticPackage as XDGPedanticPackage
|
||||
|
||||
__all__ = ("XDG", "XDGPackage", "XDGPedanticPackage")
|
||||
@@ -0,0 +1,7 @@
|
||||
def system_path_separator() -> str: ...
|
||||
def XDG_DATA_HOME() -> str: ...
|
||||
def XDG_CONFIG_HOME() -> str: ...
|
||||
def XDG_CACHE_HOME() -> str: ...
|
||||
def XDG_RUNTIME_DIR() -> str: ...
|
||||
def XDG_DATA_DIRS() -> str: ...
|
||||
def XDG_CONFIG_DIRS() -> str: ...
|
||||
@@ -0,0 +1,35 @@
|
||||
class XDG:
|
||||
def __init__(self) -> None: ...
|
||||
@property
|
||||
def XDG_DATA_HOME(self) -> str: ...
|
||||
@property
|
||||
def XDG_CONFIG_HOME(self) -> str: ...
|
||||
@property
|
||||
def XDG_CACHE_HOME(self) -> str: ...
|
||||
@property
|
||||
def XDG_RUNTIME_DIR(self) -> str: ...
|
||||
@property
|
||||
def XDG_DATA_DIRS(self) -> tuple[str, ...]: ...
|
||||
@property
|
||||
def XDG_CONFIG_DIRS(self) -> tuple[str, ...]: ...
|
||||
|
||||
class XDGPackage(XDG):
|
||||
def __init__(self, package_name: str) -> None: ...
|
||||
@property
|
||||
def XDG_DATA_HOME(self) -> str: ...
|
||||
@property
|
||||
def XDG_CONFIG_HOME(self) -> str: ...
|
||||
@property
|
||||
def XDG_CACHE_HOME(self) -> str: ...
|
||||
@property
|
||||
def XDG_RUNTIME_DIR(self) -> str: ...
|
||||
|
||||
class XDGPedanticPackage(XDGPackage):
|
||||
@property
|
||||
def XDG_DATA_HOME(self) -> str: ...
|
||||
@property
|
||||
def XDG_CONFIG_HOME(self) -> str: ...
|
||||
@property
|
||||
def XDG_CACHE_HOME(self) -> str: ...
|
||||
@property
|
||||
def XDG_RUNTIME_DIR(self) -> str: ...
|
||||
Reference in New Issue
Block a user