mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
In sysconfig module, add _get_preferred_schemes (#14934)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -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",
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user