run black over stubs, add checking to travis

This commit is contained in:
Maxim Kurnikov
2018-12-03 18:52:44 +03:00
parent d5bc7d4ab2
commit cf6119bf9b
420 changed files with 2295 additions and 8384 deletions

View File

@@ -7,7 +7,6 @@ from django.db.models.fields import Field
from django.db.models.indexes import Index
from django.db.models.manager import Manager
class AppConfigStub:
apps: None
label: str
@@ -41,9 +40,7 @@ class ModelState:
def clone(self) -> ModelState: ...
def construct_managers(self) -> Iterator[Tuple[str, Manager]]: ...
@classmethod
def from_model(
cls, model: Type[Model], exclude_rels: bool = ...
) -> ModelState: ...
def from_model(cls, model: Type[Model], exclude_rels: bool = ...) -> ModelState: ...
def get_field_by_name(self, name: str) -> Field: ...
@cached_property
def name_lower(self) -> str: ...
@@ -54,9 +51,7 @@ class ProjectState:
models: Dict[Any, Any]
real_apps: List[str]
def __init__(
self,
models: Optional[Dict[Tuple[str, str], ModelState]] = ...,
real_apps: Optional[List[str]] = ...,
self, models: Optional[Dict[Tuple[str, str], ModelState]] = ..., real_apps: Optional[List[str]] = ...
) -> None: ...
def add_model(self, model_state: ModelState) -> None: ...
@cached_property
@@ -67,9 +62,7 @@ class ProjectState:
def concrete_apps(self) -> StateApps: ...
@classmethod
def from_apps(cls, apps: Apps) -> ProjectState: ...
def reload_model(
self, app_label: str, model_name: str, delay: bool = ...
) -> None: ...
def reload_model(self, app_label: str, model_name: str, delay: bool = ...) -> None: ...
def reload_models(self, models: List[Any], delay: bool = ...) -> None: ...
def remove_model(self, app_label: str, model_name: str) -> None: ...
@@ -82,12 +75,7 @@ class StateApps:
ready: bool
real_models: List[django.db.migrations.state.ModelState]
stored_app_configs: List[Any]
def __init__(
self,
real_apps: List[str],
models: Dict[Tuple[str, str], ModelState],
ignore_swappable: bool = ...,
) -> None: ...
def __init__(self, real_apps: List[str], models: Dict[Tuple[str, str], ModelState], ignore_swappable: bool = ...) -> None: ...
def bulk_update(self) -> Iterator[None]: ...
def clone(self) -> StateApps: ...
def render_multiple(self, model_states: List[ModelState]) -> None: ...