Files
django-stubs/django/apps/registry.pyi
Maxim Kurnikov a9f215bf64 initial commit
2018-07-29 18:12:23 +03:00

23 lines
753 B
Python

from django.apps.config import AppConfig
from django.db.migrations.state import AppConfigStub
from typing import (
Any,
List,
Optional,
Tuple,
Union,
)
class Apps:
def __init__(
self,
installed_apps: Union[Tuple, List[AppConfigStub], List[str]] = ...
) -> None: ...
def check_apps_ready(self) -> None: ...
def check_models_ready(self) -> None: ...
def clear_cache(self) -> None: ...
def do_pending_operations(self, model: Any) -> None: ...
def get_app_config(self, app_label: str) -> AppConfig: ...
def get_containing_app_config(self, object_name: str) -> Optional[AppConfig]: ...
def get_model(self, app_label: str, model_name: None = ..., require_ready: bool = ...) -> Any: ...