mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 13:51:30 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user