mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-15 14:31:59 +08:00
apply black and isort (#4287)
* apply black and isort * move some type ignores
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user