Big diff: Use new "|" union syntax (#5872)

This commit is contained in:
Akuli
2021-08-08 12:05:21 +03:00
committed by GitHub
parent b9adb7a874
commit ee487304d7
578 changed files with 8080 additions and 8966 deletions

View File

@@ -1,7 +1,7 @@
import sys
from _typeshed import StrOrBytesPath
from types import SimpleNamespace
from typing import Optional, Sequence
from typing import Sequence
class EnvBuilder:
system_site_packages: bool
@@ -9,7 +9,7 @@ class EnvBuilder:
symlinks: bool
upgrade: bool
with_pip: bool
prompt: Optional[str]
prompt: str | None
if sys.version_info >= (3, 9):
def __init__(
@@ -19,7 +19,7 @@ class EnvBuilder:
symlinks: bool = ...,
upgrade: bool = ...,
with_pip: bool = ...,
prompt: Optional[str] = ...,
prompt: str | None = ...,
upgrade_deps: bool = ...,
) -> None: ...
else:
@@ -30,7 +30,7 @@ class EnvBuilder:
symlinks: bool = ...,
upgrade: bool = ...,
with_pip: bool = ...,
prompt: Optional[str] = ...,
prompt: str | None = ...,
) -> None: ...
def create(self, env_dir: StrOrBytesPath) -> None: ...
def clear_directory(self, path: StrOrBytesPath) -> None: ... # undocumented
@@ -55,7 +55,7 @@ if sys.version_info >= (3, 9):
clear: bool = ...,
symlinks: bool = ...,
with_pip: bool = ...,
prompt: Optional[str] = ...,
prompt: str | None = ...,
upgrade_deps: bool = ...,
) -> None: ...
@@ -66,7 +66,7 @@ else:
clear: bool = ...,
symlinks: bool = ...,
with_pip: bool = ...,
prompt: Optional[str] = ...,
prompt: str | None = ...,
) -> None: ...
def main(args: Optional[Sequence[str]] = ...) -> None: ...
def main(args: Sequence[str] | None = ...) -> None: ...