Files
django-stubs/django-stubs/db/migrations/migration.pyi
Maxim Kurnikov 610e64b5c2 fix ci
2018-12-20 22:57:47 +03:00

31 lines
1.1 KiB
Python

from typing import Any, Tuple, Type, List
from django.db.backends.base.schema import BaseDatabaseSchemaEditor
from django.db.migrations.state import ProjectState
class Migration:
operations: List[Any] = ...
dependencies: List[Any] = ...
run_before: List[Any] = ...
replaces: List[Any] = ...
initial: Any = ...
atomic: bool = ...
name: str = ...
app_label: str = ...
def __init__(self, name: str, app_label: str) -> None: ...
def __eq__(self, other: object) -> bool: ...
def __hash__(self) -> int: ...
def mutate_state(self, project_state: ProjectState, preserve: bool = ...) -> ProjectState: ...
def apply(
self, project_state: ProjectState, schema_editor: BaseDatabaseSchemaEditor, collect_sql: bool = ...
) -> ProjectState: ...
def unapply(
self, project_state: ProjectState, schema_editor: BaseDatabaseSchemaEditor, collect_sql: bool = ...
) -> ProjectState: ...
class SwappableTuple(tuple):
setting: str = ...
def __new__(cls: Type[SwappableTuple], value: Tuple[str, str], setting: str) -> SwappableTuple: ...
def swappable_dependency(value: str) -> SwappableTuple: ...