venv: update for py39 (#4010)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-05-16 17:01:33 -07:00
committed by GitHub
parent bedccc7497
commit fe26ce99da

View File

@@ -18,7 +18,9 @@ class EnvBuilder:
if sys.version_info >= (3, 6):
prompt: Optional[str]
if sys.version_info >= (3, 6):
if sys.version_info >= (3, 9):
def __init__(self, system_site_packages: bool = ..., clear: bool = ..., symlinks: bool = ..., upgrade: bool = ..., with_pip: bool = ..., prompt: Optional[str] = ..., upgrade_deps: bool = ...) -> None: ...
elif sys.version_info >= (3, 6):
def __init__(self, system_site_packages: bool = ..., clear: bool = ..., symlinks: bool = ..., upgrade: bool = ..., with_pip: bool = ..., prompt: Optional[str] = ...) -> None: ...
else:
def __init__(self, system_site_packages: bool = ..., clear: bool = ..., symlinks: bool = ..., upgrade: bool = ..., with_pip: bool = ...) -> None: ...
@@ -33,9 +35,14 @@ class EnvBuilder:
def post_setup(self, context: SimpleNamespace) -> None: ...
def replace_variables(self, text: str, context: SimpleNamespace) -> str: ... # undocumented
def install_scripts(self, context: SimpleNamespace, path: str) -> None: ...
if sys.version_info >= (3, 9):
def upgrade_dependencies(context: SimpleNamespace) -> None: ...
if sys.version_info >= (3, 6):
if sys.version_info >= (3, 9):
def create(env_dir: _Path, system_site_packages: bool = ..., clear: bool = ..., symlinks: bool = ..., with_pip: bool = ..., prompt: Optional[str] = ..., upgrade_deps: bool = ...) -> None: ...
elif sys.version_info >= (3, 6):
def create(env_dir: _Path, system_site_packages: bool = ..., clear: bool = ..., symlinks: bool = ..., with_pip: bool = ..., prompt: Optional[str] = ...) -> None: ...
else:
def create(env_dir: _Path, system_site_packages: bool = ..., clear: bool = ..., symlinks: bool = ..., with_pip: bool = ...) -> None: ...
def main(args: Optional[Sequence[Text]] = ...) -> None: ...