mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-09-18 17:53:16 +08:00
fourth iteration
This commit is contained in:
@@ -1,108 +1,11 @@
|
||||
from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union
|
||||
from typing import Any, List, Optional, Union
|
||||
|
||||
from django.utils.functional import LazyObject
|
||||
|
||||
ENVIRONMENT_VARIABLE: str
|
||||
|
||||
class LazySettings(LazyObject):
|
||||
def __getattr__(
|
||||
self, name: str
|
||||
) -> Optional[
|
||||
Union[
|
||||
Callable,
|
||||
Dict[int, None],
|
||||
Dict[int, str],
|
||||
Dict[str, Callable],
|
||||
Dict[
|
||||
str,
|
||||
Optional[
|
||||
Union[
|
||||
Dict[str, Union[Callable, Dict[str, int], str]],
|
||||
Dict[str, Union[Dict[str, int], int, str]],
|
||||
]
|
||||
],
|
||||
],
|
||||
Dict[str, Optional[str]],
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[
|
||||
str,
|
||||
Optional[
|
||||
Union[Dict[Any, Any], Dict[str, None], int, str]
|
||||
],
|
||||
],
|
||||
str,
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[List[str], bool, str]],
|
||||
Dict[str, Union[List[str], str]],
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[str, Union[List[str], str]], Dict[str, str]],
|
||||
],
|
||||
int,
|
||||
str,
|
||||
],
|
||||
],
|
||||
List[Dict[str, Union[Dict[str, List[Any]], List[Any], bool, str]]],
|
||||
List[Dict[str, Union[Dict[str, Tuple[str]], List[str], str]]],
|
||||
List[
|
||||
Union[
|
||||
Dict[str, Union[Dict[Any, Any], bool, str]],
|
||||
Dict[str, Union[Dict[str, bool], bool, str]],
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[str, List[Tuple[str, Dict[str, str]]]], str],
|
||||
],
|
||||
Dict[str, Union[Dict[str, int], str]],
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
Dict[
|
||||
str, Union[Dict[str, List[str]], List[str], bool, str]
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[str, Tuple[str, str]], List[str], bool, str],
|
||||
],
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
Dict[str, Union[Dict[str, bool], str]],
|
||||
Dict[str, Union[Dict[str, int], str]],
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
Dict[str, Union[Dict[str, int], str]],
|
||||
Dict[str, Union[Dict[str, str], str]],
|
||||
]
|
||||
],
|
||||
List[Union[Tuple[str, str], str]],
|
||||
List[int],
|
||||
Tuple[Tuple[str, str], Tuple[str, str]],
|
||||
Tuple[str, str],
|
||||
Type[Any],
|
||||
float,
|
||||
int,
|
||||
str,
|
||||
]
|
||||
]: ...
|
||||
def __getattr__(self, name: str) -> Any: ...
|
||||
def __setattr__(self, name: str, value: Any) -> None: ...
|
||||
def __delattr__(self, name: str) -> None: ...
|
||||
def configure(self, default_settings: Any = ..., **options: Any) -> Any: ...
|
||||
@@ -124,136 +27,8 @@ class UserSettingsHolder:
|
||||
def __init__(
|
||||
self, default_settings: Union[Settings, UserSettingsHolder]
|
||||
) -> None: ...
|
||||
def __getattr__(
|
||||
self, name: str
|
||||
) -> Optional[
|
||||
Union[
|
||||
Dict[
|
||||
str,
|
||||
Dict[
|
||||
str,
|
||||
Optional[Union[Dict[Any, Any], Dict[str, None], int, str]],
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Optional[
|
||||
Union[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[List[str], bool, str]],
|
||||
Dict[str, Union[List[str], str]],
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[List[str], str]], Dict[str, str]
|
||||
],
|
||||
],
|
||||
int,
|
||||
]
|
||||
],
|
||||
],
|
||||
Dict[str, str],
|
||||
List[Dict[str, Union[Dict[str, List[str]], List[str], bool, str]]],
|
||||
List[Dict[str, Union[Dict[str, Tuple[str]], List[str], bool, str]]],
|
||||
List[Union[Tuple[str, str], str]],
|
||||
List[int],
|
||||
float,
|
||||
int,
|
||||
str,
|
||||
]
|
||||
]: ...
|
||||
def __setattr__(
|
||||
self,
|
||||
name: str,
|
||||
value: Optional[
|
||||
Union[
|
||||
Callable,
|
||||
Dict[int, None],
|
||||
Dict[int, str],
|
||||
Dict[str, Callable],
|
||||
Dict[
|
||||
str,
|
||||
Optional[
|
||||
Union[
|
||||
Dict[str, Dict[str, Union[List[str], bool, str]]],
|
||||
int,
|
||||
]
|
||||
],
|
||||
],
|
||||
Dict[str, Optional[str]],
|
||||
Dict[str, Union[Dict[str, Optional[str]], str]],
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[Callable, Dict[str, int], str]],
|
||||
Dict[str, Union[Dict[str, int], int, str]],
|
||||
],
|
||||
],
|
||||
List[
|
||||
Dict[str, Union[Dict[str, List[Any]], List[Any], bool, str]]
|
||||
],
|
||||
List[Dict[str, Union[Dict[str, Tuple[str]], List[str], str]]],
|
||||
List[
|
||||
Union[
|
||||
Dict[str, Union[Dict[Any, Any], bool, str]],
|
||||
Dict[str, Union[Dict[str, bool], bool, str]],
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, List[Tuple[str, Dict[str, str]]]], str
|
||||
],
|
||||
],
|
||||
Dict[str, Union[Dict[str, int], str]],
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[str, List[str]], List[str], bool, str],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Tuple[str, str]], List[str], bool, str
|
||||
],
|
||||
],
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
Dict[str, Union[Dict[str, bool], str]],
|
||||
Dict[str, Union[Dict[str, int], str]],
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
Dict[str, Union[Dict[str, int], str]],
|
||||
Dict[str, Union[Dict[str, str], str]],
|
||||
]
|
||||
],
|
||||
List[Union[Tuple[str, str], str]],
|
||||
List[int],
|
||||
Tuple[Tuple[str, str], Tuple[str, str]],
|
||||
Tuple[str],
|
||||
Type[Any],
|
||||
bytes,
|
||||
Settings,
|
||||
UserSettingsHolder,
|
||||
float,
|
||||
int,
|
||||
str,
|
||||
]
|
||||
],
|
||||
) -> None: ...
|
||||
def __getattr__(self, name: str) -> Any: ...
|
||||
def __setattr__(self, name: str, value: Any) -> None: ...
|
||||
def __delattr__(self, name: str) -> None: ...
|
||||
def __dir__(self) -> List[str]: ...
|
||||
def is_overridden(self, setting: str) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user