Skip to content
Merged
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
8 changes: 5 additions & 3 deletions stdlib/sysconfig.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
from typing import IO, Any, Literal, overload
from typing_extensions import deprecated
from typing_extensions import LiteralString, deprecated

__all__ = [
"get_config_h_filename",
Expand Down Expand Up @@ -28,8 +28,10 @@ def get_config_vars(arg: str, /, *args: str) -> list[Any]: ...
def get_scheme_names() -> tuple[str, ...]: ...

if sys.version_info >= (3, 10):
def get_default_scheme() -> str: ...
def get_preferred_scheme(key: Literal["prefix", "home", "user"]) -> str: ...
def get_default_scheme() -> LiteralString: ...
def get_preferred_scheme(key: Literal["prefix", "home", "user"]) -> LiteralString: ...
# Documented -- see https://docs.python.org/3/library/sysconfig.html#sysconfig._get_preferred_schemes
def _get_preferred_schemes() -> dict[Literal["prefix", "home", "user"], LiteralString]: ...

def get_path_names() -> tuple[str, ...]: ...
def get_path(name: str, scheme: str = ..., vars: dict[str, Any] | None = None, expand: bool = True) -> str: ...
Expand Down