mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-19 18:31:15 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -1,32 +1,18 @@
|
||||
from typing import Any, List, Optional, Type
|
||||
|
||||
|
||||
class Operation:
|
||||
reversible: bool = ...
|
||||
reduces_to_sql: bool = ...
|
||||
atomic: bool = ...
|
||||
elidable: bool = ...
|
||||
serialization_expand_args: Any = ...
|
||||
def __new__(
|
||||
cls: Type[Operation], *args: Any, **kwargs: Any
|
||||
) -> Operation: ...
|
||||
def __new__(cls: Type[Operation], *args: Any, **kwargs: Any) -> Operation: ...
|
||||
def deconstruct(self): ...
|
||||
def state_forwards(self, app_label: Any, state: Any) -> None: ...
|
||||
def database_forwards(
|
||||
self, app_label: Any, schema_editor: Any, from_state: Any, to_state: Any
|
||||
) -> None: ...
|
||||
def database_backwards(
|
||||
self, app_label: Any, schema_editor: Any, from_state: Any, to_state: Any
|
||||
) -> None: ...
|
||||
def database_forwards(self, app_label: Any, schema_editor: Any, from_state: Any, to_state: Any) -> None: ...
|
||||
def database_backwards(self, app_label: Any, schema_editor: Any, from_state: Any, to_state: Any) -> None: ...
|
||||
def describe(self): ...
|
||||
def references_model(self, name: str, app_label: str = ...) -> bool: ...
|
||||
def references_field(
|
||||
self, model_name: str, name: str, app_label: str = ...
|
||||
) -> bool: ...
|
||||
def references_field(self, model_name: str, name: str, app_label: str = ...) -> bool: ...
|
||||
def allow_migrate_model(self, connection_alias: Any, model: Any): ...
|
||||
def reduce(
|
||||
self,
|
||||
operation: Operation,
|
||||
in_between: List[Operation],
|
||||
app_label: str = ...,
|
||||
) -> bool: ...
|
||||
def reduce(self, operation: Operation, in_between: List[Operation], app_label: str = ...) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user