mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-09 21:46:43 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -4,7 +4,6 @@ from django.db.backends.ddl_references import Statement
|
||||
from django.db.backends.sqlite3.schema import DatabaseSchemaEditor
|
||||
from django.db.models.base import Model
|
||||
|
||||
|
||||
class Index:
|
||||
model: Type[django.db.models.base.Model]
|
||||
suffix: str = ...
|
||||
@@ -13,26 +12,11 @@ class Index:
|
||||
fields_orders: List[Tuple[str, str]] = ...
|
||||
name: str = ...
|
||||
db_tablespace: Optional[str] = ...
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
fields: Any = ...,
|
||||
name: Optional[Any] = ...,
|
||||
db_tablespace: Optional[Any] = ...
|
||||
) -> None: ...
|
||||
def __init__(self, *, fields: Any = ..., name: Optional[Any] = ..., db_tablespace: Optional[Any] = ...) -> None: ...
|
||||
def check_name(self) -> List[str]: ...
|
||||
def create_sql(
|
||||
self,
|
||||
model: Type[Model],
|
||||
schema_editor: DatabaseSchemaEditor,
|
||||
using: str = ...,
|
||||
) -> Statement: ...
|
||||
def remove_sql(
|
||||
self, model: Type[Model], schema_editor: DatabaseSchemaEditor
|
||||
) -> str: ...
|
||||
def deconstruct(
|
||||
self
|
||||
) -> Tuple[str, Tuple, Dict[str, Union[List[str], str]]]: ...
|
||||
def create_sql(self, model: Type[Model], schema_editor: DatabaseSchemaEditor, using: str = ...) -> Statement: ...
|
||||
def remove_sql(self, model: Type[Model], schema_editor: DatabaseSchemaEditor) -> str: ...
|
||||
def deconstruct(self) -> Tuple[str, Tuple, Dict[str, Union[List[str], str]]]: ...
|
||||
def clone(self) -> Index: ...
|
||||
def set_name_with_model(self, model: Type[Model]) -> None: ...
|
||||
def __eq__(self, other: Index) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user