mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 20:54:29 +08:00
* code cleanups, disable monkeypatches, move to add_additional_deps * disable incremental mode for tests * add pip-wheel-metadata * move some code from get_base_hook to get_attribute_hook to reduce dependencies * simplify values/values_list tests and code * disable cache for some tests failing with incremental mode * enable incremental mode for tests typechecking * pin mypy version * fix tests * lint * fix internal crashes
25 lines
715 B
Python
25 lines
715 B
Python
from typing import Any
|
|
|
|
from django.utils.functional import LazyObject
|
|
|
|
# explicit dependency on standard settings to make it loaded
|
|
from . import global_settings
|
|
|
|
ENVIRONMENT_VARIABLE: str = ...
|
|
|
|
# required for plugin to be able to distinguish this specific instance of LazySettings from others
|
|
class _DjangoConfLazyObject(LazyObject):
|
|
def __getattr__(self, item: Any) -> Any: ...
|
|
|
|
class LazySettings(_DjangoConfLazyObject):
|
|
configured: bool
|
|
def configure(self, default_settings: Any = ..., **options: Any) -> Any: ...
|
|
|
|
settings: LazySettings = ...
|
|
|
|
class Settings:
|
|
def __init__(self, settings_module: str): ...
|
|
def is_overridden(self, setting: str) -> bool: ...
|
|
|
|
class UserSettingsHolder: ...
|