stdlib: add argument default values (#9501)

This commit is contained in:
Jelle Zijlstra
2023-01-18 00:37:34 -08:00
committed by GitHub
parent 6cb934291f
commit ddfaca3200
272 changed files with 2529 additions and 2467 deletions

View File

@@ -20,13 +20,13 @@ class EnvBuilder:
if sys.version_info >= (3, 9):
def __init__(
self,
system_site_packages: bool = ...,
clear: bool = ...,
symlinks: bool = ...,
upgrade: bool = ...,
with_pip: bool = ...,
prompt: str | None = ...,
upgrade_deps: bool = ...,
system_site_packages: bool = False,
clear: bool = False,
symlinks: bool = False,
upgrade: bool = False,
with_pip: bool = False,
prompt: str | None = None,
upgrade_deps: bool = False,
) -> None: ...
else:
def __init__(
@@ -44,7 +44,7 @@ class EnvBuilder:
def ensure_directories(self, env_dir: StrOrBytesPath) -> SimpleNamespace: ...
def create_configuration(self, context: SimpleNamespace) -> None: ...
def symlink_or_copy(
self, src: StrOrBytesPath, dst: StrOrBytesPath, relative_symlinks_ok: bool = ...
self, src: StrOrBytesPath, dst: StrOrBytesPath, relative_symlinks_ok: bool = False
) -> None: ... # undocumented
def setup_python(self, context: SimpleNamespace) -> None: ...
def _setup_pip(self, context: SimpleNamespace) -> None: ... # undocumented
@@ -58,12 +58,12 @@ class EnvBuilder:
if sys.version_info >= (3, 9):
def create(
env_dir: StrOrBytesPath,
system_site_packages: bool = ...,
clear: bool = ...,
symlinks: bool = ...,
with_pip: bool = ...,
prompt: str | None = ...,
upgrade_deps: bool = ...,
system_site_packages: bool = False,
clear: bool = False,
symlinks: bool = False,
with_pip: bool = False,
prompt: str | None = None,
upgrade_deps: bool = False,
) -> None: ...
else:
@@ -76,4 +76,4 @@ else:
prompt: str | None = ...,
) -> None: ...
def main(args: Sequence[str] | None = ...) -> None: ...
def main(args: Sequence[str] | None = None) -> None: ...