reformat with black

This commit is contained in:
Maxim Kurnikov committed 2018-07-29 23:34:58 +03:00
1 parent 4866354600
commit cf85607969
343 files changed
+6054 -2158

No files matched your search

+4 -1
View File
@@ -6,6 +6,7 @@ from typing import Any
from django.db.models.base import Model
from typing import Any, Iterator, Type
MODELS_MODULE_NAME: str
class AppConfig:
@@ -23,6 +24,8 @@ class AppConfig:
@classmethod
def create(cls, entry: str) -> AppConfig: ...
def get_model(self, model_name: str, require_ready: bool = ...) -> Type[Model]: ...
def get_models(self, include_auto_created: bool = ..., include_swapped: bool = ...) -> Iterator[Type[Model]]: ...
def get_models(
self, include_auto_created: bool = ..., include_swapped: bool = ...
) -> Iterator[Type[Model]]: ...
def import_models(self) -> None: ...
def ready(self) -> None: ...
+7 -2
View File
@@ -9,6 +9,7 @@ from django.apps.config import AppConfig
from django.db.migrations.state import AppConfigStub
from django.db.models.base import Model
from typing import List, Optional, Tuple, Type, Union
class Apps:
all_models: Any = ...
app_configs: Any = ...
@@ -17,7 +18,9 @@ class Apps:
_lock: Any = ...
loading: bool = ...
_pending_operations: Any = ...
def __init__(self, installed_apps: Union[Tuple, List[str], List[AppConfigStub]] = ...) -> None: ...
def __init__(
self, installed_apps: Union[Tuple, List[str], List[AppConfigStub]] = ...
) -> None: ...
models_ready: bool = ...
ready: bool = ...
def populate(self, installed_apps: Optional[Any] = ...): ...
@@ -26,7 +29,9 @@ class Apps:
def get_app_configs(self): ...
def get_app_config(self, app_label: str) -> AppConfig: ...
def get_models(self, include_auto_created: bool = ..., include_swapped: bool = ...): ...
def get_model(self, app_label: str, model_name: None = ..., require_ready: bool = ...) -> Type[Model]: ...
def get_model(
self, app_label: str, model_name: None = ..., require_ready: bool = ...
) -> Type[Model]: ...
def register_model(self, app_label: Any, model: Any) -> None: ...
def is_installed(self, app_name: Any): ...
def get_containing_app_config(self, object_name: str) -> Optional[AppConfig]: ...