mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-16 16:57:12 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -9,17 +9,13 @@ from django.db.models.fields import Field
|
||||
|
||||
from .topological_sort import stable_topological_sort
|
||||
|
||||
|
||||
class MigrationAutodetector:
|
||||
from_state: django.db.migrations.state.ProjectState = ...
|
||||
to_state: django.db.migrations.state.ProjectState = ...
|
||||
questioner: django.db.migrations.questioner.MigrationQuestioner = ...
|
||||
existing_apps: Set[Any] = ...
|
||||
def __init__(
|
||||
self,
|
||||
from_state: ProjectState,
|
||||
to_state: ProjectState,
|
||||
questioner: Optional[MigrationQuestioner] = ...,
|
||||
self, from_state: ProjectState, to_state: ProjectState, questioner: Optional[MigrationQuestioner] = ...
|
||||
) -> None: ...
|
||||
def changes(
|
||||
self,
|
||||
@@ -32,18 +28,12 @@ class MigrationAutodetector:
|
||||
def only_relation_agnostic_fields(
|
||||
self, fields: List[Tuple[str, Field]]
|
||||
) -> List[Tuple[str, List[Any], Dict[str, Union[Callable, int, str]]]]: ...
|
||||
def check_dependency(
|
||||
self,
|
||||
operation: Operation,
|
||||
dependency: Tuple[str, str, Optional[str], Union[bool, str]],
|
||||
) -> bool: ...
|
||||
def check_dependency(self, operation: Operation, dependency: Tuple[str, str, Optional[str], Union[bool, str]]) -> bool: ...
|
||||
def add_operation(
|
||||
self,
|
||||
app_label: str,
|
||||
operation: Operation,
|
||||
dependencies: Optional[
|
||||
List[Tuple[str, str, Optional[str], Union[bool, str]]]
|
||||
] = ...,
|
||||
dependencies: Optional[List[Tuple[str, str, Optional[str], Union[bool, str]]]] = ...,
|
||||
beginning: bool = ...,
|
||||
) -> None: ...
|
||||
def swappable_first_key(self, item: Tuple[str, str]) -> Tuple[str, str]: ...
|
||||
@@ -69,10 +59,7 @@ class MigrationAutodetector:
|
||||
def generate_altered_order_with_respect_to(self) -> None: ...
|
||||
def generate_altered_managers(self) -> None: ...
|
||||
def arrange_for_graph(
|
||||
self,
|
||||
changes: Dict[str, List[Migration]],
|
||||
graph: MigrationGraph,
|
||||
migration_name: Optional[str] = ...,
|
||||
self, changes: Dict[str, List[Migration]], graph: MigrationGraph, migration_name: Optional[str] = ...
|
||||
) -> Dict[str, List[Migration]]: ...
|
||||
@classmethod
|
||||
def suggest_name(cls, ops: List[Operation]) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user