black reformat, some fixes

This commit is contained in:
Maxim Kurnikov
2018-12-06 19:13:06 +03:00
parent 25a71a7ef5
commit 5ec2830ba6
108 changed files with 673 additions and 187 deletions

View File

@@ -40,7 +40,9 @@ class OutputWrapper(TextIOBase):
def style_func(self, style_func: Any): ...
style_func: Any = ...
ending: str = ...
def __init__(self, out: Union[StringIO, TextIOWrapper], style_func: Optional[Callable] = ..., ending: str = ...) -> None: ...
def __init__(
self, out: Union[StringIO, TextIOWrapper], style_func: Optional[Callable] = ..., ending: str = ...
) -> None: ...
def __getattr__(self, name: str) -> Callable: ...
def isatty(self) -> bool: ...
def write(self, msg: str, style_func: Optional[Callable] = ..., ending: Optional[str] = ...) -> None: ...
@@ -55,7 +57,9 @@ class BaseCommand:
stdout: django.core.management.base.OutputWrapper = ...
stderr: django.core.management.base.OutputWrapper = ...
style: django.core.management.color.Style = ...
def __init__(self, stdout: Optional[StringIO] = ..., stderr: Optional[StringIO] = ..., no_color: bool = ...) -> None: ...
def __init__(
self, stdout: Optional[StringIO] = ..., stderr: Optional[StringIO] = ..., no_color: bool = ...
) -> None: ...
def get_version(self) -> str: ...
def create_parser(self, prog_name: str, subcommand: str) -> CommandParser: ...
def add_arguments(self, parser: CommandParser) -> None: ...

View File

@@ -14,5 +14,7 @@ class Command(BaseCommand):
interactive: Any = ...
def handle(self, *args: Any, **options: Any) -> None: ...
start: Any = ...
def migration_progress_callback(self, action: str, migration: Optional[Migration] = ..., fake: bool = ...) -> None: ...
def migration_progress_callback(
self, action: str, migration: Optional[Migration] = ..., fake: bool = ...
) -> None: ...
def sync_apps(self, connection: DatabaseWrapper, app_labels: Set[str]) -> None: ...

View File

@@ -4,7 +4,11 @@ from django.core.management.color import Style
from django.db.backends.sqlite3.base import DatabaseWrapper
def sql_flush(
style: Style, connection: DatabaseWrapper, only_django: bool = ..., reset_sequences: bool = ..., allow_cascade: bool = ...
style: Style,
connection: DatabaseWrapper,
only_django: bool = ...,
reset_sequences: bool = ...,
allow_cascade: bool = ...,
) -> List[str]: ...
def emit_pre_migrate_signal(verbosity: int, interactive: bool, db: str, **kwargs: Any) -> None: ...
def emit_post_migrate_signal(verbosity: int, interactive: bool, db: str, **kwargs: Any) -> None: ...