apply black and isort (#4287)

* apply black and isort

* move some type ignores
This commit is contained in:
Jelle Zijlstra
2020-06-28 13:31:00 -07:00
committed by GitHub
parent fe58699ca5
commit 5d553c9584
800 changed files with 13875 additions and 10332 deletions

View File

@@ -1,7 +1,8 @@
import sys
from _typeshed import AnyPath
from typing import Optional, Sequence
from types import SimpleNamespace
from typing import Optional, Sequence
from _typeshed import AnyPath
class EnvBuilder:
system_site_packages: bool
@@ -13,11 +14,35 @@ class EnvBuilder:
prompt: Optional[str]
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: ...
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: ...
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: ...
def __init__(
self,
system_site_packages: bool = ...,
clear: bool = ...,
symlinks: bool = ...,
upgrade: bool = ...,
with_pip: bool = ...,
) -> None: ...
def create(self, env_dir: AnyPath) -> None: ...
def clear_directory(self, path: AnyPath) -> None: ... # undocumented
def ensure_directories(self, env_dir: AnyPath) -> SimpleNamespace: ...
@@ -33,10 +58,29 @@ class EnvBuilder:
def upgrade_dependencies(self, context: SimpleNamespace) -> None: ...
if sys.version_info >= (3, 9):
def create(env_dir: AnyPath, system_site_packages: bool = ..., clear: bool = ..., symlinks: bool = ..., with_pip: bool = ..., prompt: Optional[str] = ..., upgrade_deps: bool = ...) -> None: ...
def create(
env_dir: AnyPath,
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: AnyPath, system_site_packages: bool = ..., clear: bool = ..., symlinks: bool = ..., with_pip: bool = ..., prompt: Optional[str] = ...) -> None: ...
def create(
env_dir: AnyPath,
system_site_packages: bool = ...,
clear: bool = ...,
symlinks: bool = ...,
with_pip: bool = ...,
prompt: Optional[str] = ...,
) -> None: ...
else:
def create(env_dir: AnyPath, system_site_packages: bool = ..., clear: bool = ..., symlinks: bool = ..., with_pip: bool = ...) -> None: ...
def create(
env_dir: AnyPath, system_site_packages: bool = ..., clear: bool = ..., symlinks: bool = ..., with_pip: bool = ...
) -> None: ...
def main(args: Optional[Sequence[str]] = ...) -> None: ...