mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Basically, the same thing as [my previous pull request][0], except the fixes are now focusing on functions with overlapping argument counts. [0]: https://github.com/python/typeshed/pull/2138
20 lines
873 B
Python
20 lines
873 B
Python
# Stubs for sysconfig
|
|
|
|
from typing import overload, Any, Dict, IO, List, Optional, Tuple, Union
|
|
|
|
@overload
|
|
def get_config_vars() -> Dict[str, Any]: ...
|
|
@overload
|
|
def get_config_vars(arg: str, *args: str) -> List[Any]: ...
|
|
def get_config_var(name: str) -> Optional[str]: ...
|
|
def get_scheme_names() -> Tuple[str, ...]: ...
|
|
def get_path_names() -> Tuple[str, ...]: ...
|
|
def get_path(name: str, scheme: str = ..., vars: Optional[Dict[str, Any]] = ..., expand: bool = ...) -> Optional[str]: ...
|
|
def get_paths(scheme: str = ..., vars: Optional[Dict[str, Any]] = ..., expand: bool = ...) -> Dict[str, str]: ...
|
|
def get_python_version() -> str: ...
|
|
def get_platform() -> str: ...
|
|
def is_python_build() -> bool: ...
|
|
def parse_config_h(fp: IO[Any], vars: Optional[Dict[str, Any]]) -> Dict[str, Any]: ...
|
|
def get_config_h_filename() -> str: ...
|
|
def get_makefile_filename() -> str: ...
|