mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-16 00:37:11 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -3,7 +3,6 @@ from typing import Any, Tuple, Type, List
|
||||
from django.db.backends.sqlite3.schema import DatabaseSchemaEditor
|
||||
from django.db.migrations.state import ProjectState
|
||||
|
||||
|
||||
class Migration:
|
||||
operations: List[Any] = ...
|
||||
dependencies: List[Any] = ...
|
||||
@@ -16,26 +15,16 @@ class Migration:
|
||||
def __init__(self, name: str, app_label: str) -> None: ...
|
||||
def __eq__(self, other: Migration) -> bool: ...
|
||||
def __hash__(self) -> int: ...
|
||||
def mutate_state(
|
||||
self, project_state: ProjectState, preserve: bool = ...
|
||||
) -> ProjectState: ...
|
||||
def mutate_state(self, project_state: ProjectState, preserve: bool = ...) -> ProjectState: ...
|
||||
def apply(
|
||||
self,
|
||||
project_state: ProjectState,
|
||||
schema_editor: DatabaseSchemaEditor,
|
||||
collect_sql: bool = ...,
|
||||
self, project_state: ProjectState, schema_editor: DatabaseSchemaEditor, collect_sql: bool = ...
|
||||
) -> ProjectState: ...
|
||||
def unapply(
|
||||
self,
|
||||
project_state: ProjectState,
|
||||
schema_editor: DatabaseSchemaEditor,
|
||||
collect_sql: bool = ...,
|
||||
self, project_state: ProjectState, schema_editor: DatabaseSchemaEditor, collect_sql: bool = ...
|
||||
) -> ProjectState: ...
|
||||
|
||||
class SwappableTuple(tuple):
|
||||
setting: str = ...
|
||||
def __new__(
|
||||
cls: Type[SwappableTuple], value: Tuple[str, str], setting: str
|
||||
) -> SwappableTuple: ...
|
||||
def __new__(cls: Type[SwappableTuple], value: Tuple[str, str], setting: str) -> SwappableTuple: ...
|
||||
|
||||
def swappable_dependency(value: str) -> SwappableTuple: ...
|
||||
|
||||
Reference in New Issue
Block a user