mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-08-15 04:11:04 +08:00
add support for django.conf.settings.SETTING_NAME
This commit is contained in:
@@ -1,4 +1,14 @@
|
||||
from typing import Any
|
||||
|
||||
from django.utils.functional import LazyObject
|
||||
|
||||
settings = ... # type: Any
|
||||
|
||||
# required for plugin to be able to distinguish this specific instance of LazySettings from others
|
||||
class _DjangoConfLazyObject(LazyObject): ...
|
||||
|
||||
|
||||
class LazySettings(_DjangoConfLazyObject):
|
||||
configured: bool
|
||||
def configure(self, default_settings: Any = ..., **options: Any) -> Any: ...
|
||||
|
||||
settings: LazySettings = ...
|
||||
Reference in New Issue
Block a user