mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 14:01:56 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -10,7 +10,6 @@ from .loader import MigrationLoader
|
||||
from .recorder import MigrationRecorder
|
||||
from .state import ProjectState
|
||||
|
||||
|
||||
class MigrationExecutor:
|
||||
connection: django.db.backends.sqlite3.base.DatabaseWrapper = ...
|
||||
loader: django.db.migrations.loader.MigrationLoader = ...
|
||||
@@ -18,15 +17,11 @@ class MigrationExecutor:
|
||||
progress_callback: Callable = ...
|
||||
def __init__(
|
||||
self,
|
||||
connection: Optional[
|
||||
Union[DefaultConnectionProxy, BaseDatabaseWrapper]
|
||||
],
|
||||
connection: Optional[Union[DefaultConnectionProxy, BaseDatabaseWrapper]],
|
||||
progress_callback: Optional[Callable] = ...,
|
||||
) -> None: ...
|
||||
def migration_plan(
|
||||
self,
|
||||
targets: Union[List[Tuple[str, Optional[str]]], Set[Tuple[str, str]]],
|
||||
clean_start: bool = ...,
|
||||
self, targets: Union[List[Tuple[str, Optional[str]]], Set[Tuple[str, str]]], clean_start: bool = ...
|
||||
) -> List[Tuple[Migration, bool]]: ...
|
||||
def migrate(
|
||||
self,
|
||||
@@ -38,16 +33,8 @@ class MigrationExecutor:
|
||||
) -> ProjectState: ...
|
||||
def collect_sql(self, plan: List[Tuple[Migration, bool]]) -> List[str]: ...
|
||||
def apply_migration(
|
||||
self,
|
||||
state: ProjectState,
|
||||
migration: Migration,
|
||||
fake: bool = ...,
|
||||
fake_initial: bool = ...,
|
||||
) -> ProjectState: ...
|
||||
def unapply_migration(
|
||||
self, state: ProjectState, migration: Migration, fake: bool = ...
|
||||
self, state: ProjectState, migration: Migration, fake: bool = ..., fake_initial: bool = ...
|
||||
) -> ProjectState: ...
|
||||
def unapply_migration(self, state: ProjectState, migration: Migration, fake: bool = ...) -> ProjectState: ...
|
||||
def check_replacements(self) -> None: ...
|
||||
def detect_soft_applied(
|
||||
self, project_state: Optional[ProjectState], migration: Migration
|
||||
) -> Tuple[bool, ProjectState]: ...
|
||||
def detect_soft_applied(self, project_state: Optional[ProjectState], migration: Migration) -> Tuple[bool, ProjectState]: ...
|
||||
|
||||
Reference in New Issue
Block a user