-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* only allow redirect_chain attribute in response when client sets the follow flag Signed-off-by: Oleg Hoefling <[email protected]> * compat for py3.7 Signed-off-by: Oleg Hoefling <[email protected]> * compat for py3.7, fixed Signed-off-by: Oleg Hoefling <[email protected]> * address review comments, extract follow flag checks in a separate test case Signed-off-by: Oleg Hoefling <[email protected]> * configure flake8-pyi plugin in pre-commit Signed-off-by: Oleg Hoefling <[email protected]> * use pep 604 union types where possible Signed-off-by: Oleg Hoefling <[email protected]> * fix Y015 Signed-off-by: Oleg Hoefling <[email protected]> * use PEP 585 container types where possible, replace obsolete typing types with collections.abc Signed-off-by: Oleg Hoefling <[email protected]> * allow isort to reorder non-top imports Signed-off-by: Oleg Hoefling <[email protected]> * finish PEP 585 changes, use PEP 613 where possible Signed-off-by: Oleg Hoefling <[email protected]> * fix remaining flake8-pyi warnings, silence warnings in question Signed-off-by: Oleg Hoefling <[email protected]> * fix Y023 Signed-off-by: Oleg Hoefling <[email protected]> * fix Y029 Signed-off-by: Oleg Hoefling <[email protected]> Signed-off-by: Oleg Hoefling <[email protected]>
- Loading branch information
Showing
489 changed files
with
7,690 additions
and
7,698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,41 @@ | ||
import threading | ||
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Type, Union | ||
from collections.abc import Callable, Iterable | ||
from typing import Any | ||
|
||
from django.db.models.base import Model | ||
|
||
from .config import AppConfig | ||
|
||
class Apps: | ||
all_models: Dict[str, Dict[str, Type[Model]]] = ... | ||
app_configs: Dict[str, AppConfig] = ... | ||
stored_app_configs: List[Any] = ... | ||
apps_ready: bool = ... | ||
ready_event: threading.Event = ... | ||
loading: bool = ... | ||
_pending_operations: Dict[Tuple[str, str], List] | ||
models_ready: bool = ... | ||
ready: bool = ... | ||
def __init__(self, installed_apps: Optional[Iterable[Union[AppConfig, str]]] = ...) -> None: ... | ||
def populate(self, installed_apps: Iterable[Union[AppConfig, str]] = ...) -> None: ... | ||
all_models: dict[str, dict[str, type[Model]]] | ||
app_configs: dict[str, AppConfig] | ||
stored_app_configs: list[Any] | ||
apps_ready: bool | ||
ready_event: threading.Event | ||
loading: bool | ||
_pending_operations: dict[tuple[str, str], list] | ||
models_ready: bool | ||
ready: bool | ||
def __init__(self, installed_apps: Iterable[AppConfig | str] | None = ...) -> None: ... | ||
def populate(self, installed_apps: Iterable[AppConfig | str] = ...) -> None: ... | ||
def check_apps_ready(self) -> None: ... | ||
def check_models_ready(self) -> None: ... | ||
def get_app_configs(self) -> Iterable[AppConfig]: ... | ||
def get_app_config(self, app_label: str) -> AppConfig: ... | ||
# it's not possible to support it in plugin properly now | ||
def get_models(self, include_auto_created: bool = ..., include_swapped: bool = ...) -> List[Type[Model]]: ... | ||
def get_model(self, app_label: str, model_name: Optional[str] = ..., require_ready: bool = ...) -> Type[Any]: ... | ||
def register_model(self, app_label: str, model: Type[Model]) -> None: ... | ||
def get_models(self, include_auto_created: bool = ..., include_swapped: bool = ...) -> list[type[Model]]: ... | ||
def get_model(self, app_label: str, model_name: str | None = ..., require_ready: bool = ...) -> type[Any]: ... | ||
def register_model(self, app_label: str, model: type[Model]) -> None: ... | ||
def is_installed(self, app_name: str) -> bool: ... | ||
def get_containing_app_config(self, object_name: str) -> Optional[AppConfig]: ... | ||
def get_registered_model(self, app_label: str, model_name: str) -> Type[Model]: ... | ||
def get_swappable_settings_name(self, to_string: str) -> Optional[str]: ... | ||
def get_containing_app_config(self, object_name: str) -> AppConfig | None: ... | ||
def get_registered_model(self, app_label: str, model_name: str) -> type[Model]: ... | ||
def get_swappable_settings_name(self, to_string: str) -> str | None: ... | ||
def set_available_apps(self, available: Iterable[str]) -> None: ... | ||
def unset_available_apps(self) -> None: ... | ||
def set_installed_apps(self, installed: Iterable[str]) -> None: ... | ||
def unset_installed_apps(self) -> None: ... | ||
def clear_cache(self) -> None: ... | ||
def lazy_model_operation(self, function: Callable, *model_keys: Any) -> None: ... | ||
def do_pending_operations(self, model: Type[Model]) -> None: ... | ||
def do_pending_operations(self, model: type[Model]) -> None: ... | ||
|
||
apps: Apps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.