mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 05:51:53 +08:00
black reformat, some fixes
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user