[sysconfig] Add deprecation for check_home arg of sysconfig.is_python_build (#15181)

This commit is contained in:
Max Muoto
2025-12-28 06:58:47 -06:00
committed by GitHub
parent 11e703e755
commit a566aee8cb
+8 -1
View File
@@ -39,7 +39,14 @@ def get_paths(scheme: str = ..., vars: dict[str, Any] | None = None, expand: boo
def get_python_version() -> str: ...
def get_platform() -> str: ...
if sys.version_info >= (3, 11):
if sys.version_info >= (3, 12):
@overload
def is_python_build() -> bool: ...
@overload
@deprecated("The `check_home` parameter is deprecated since Python 3.12; removed in Python 3.15.")
def is_python_build(check_home: object = None) -> bool: ...
elif sys.version_info >= (3, 11):
def is_python_build(check_home: object = None) -> bool: ...
else: