mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 00:43:45 +08:00
Fix sysconfig.get_path return type (#5659)
`get_path` uses key access and raises `KeyError` for missing keys.
This commit is contained in:
1 parent
4d981f87e3
commit
5a256a0c70
2 files changed
+2
-2
No files matched your search
@@ -7,7 +7,7 @@ def get_config_vars() -> Dict[str, Any]: ...
|
||||
def get_config_vars(arg: str, *args: str) -> List[Any]: ...
|
||||
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_path(name: str, scheme: str = ..., vars: Optional[Dict[str, Any]] = ..., expand: bool = ...) -> 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: ...
|
||||
|
||||
Reference in new issue
Block a user