mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Merge and complete stubs for sysconfig (#1040)
* unify and complete sysconfig stubs * add missing imports * and another
This commit is contained in:
committed by
Łukasz Langa
parent
ee22a489d9
commit
658abe7c9e
19
stdlib/2and3/sysconfig.pyi
Normal file
19
stdlib/2and3/sysconfig.pyi
Normal file
@@ -0,0 +1,19 @@
|
||||
# Stubs for sysconfig
|
||||
|
||||
from typing import overload, Any, Dict, IO, List, Optional, Tuple, Union
|
||||
|
||||
@overload
|
||||
def get_config_vars(*args: str) -> List[Any]: ...
|
||||
@overload
|
||||
def get_config_vars() -> Dict[str, 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: ...
|
||||
@@ -1,8 +0,0 @@
|
||||
# Stubs for sysconfig
|
||||
|
||||
# NOTE: These are incomplete!
|
||||
|
||||
import typing
|
||||
|
||||
def get_config_var(name: str) -> str: ...
|
||||
def is_python_build() -> bool: ...
|
||||
Reference in New Issue
Block a user