mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-05-18 06:19:47 +08:00
fourth iteration
This commit is contained in:
@@ -1,12 +1,5 @@
|
||||
from datetime import date, time, timedelta
|
||||
from decimal import Decimal
|
||||
from typing import Any, Dict, List, Optional, Union
|
||||
from uuid import UUID
|
||||
|
||||
from django.core.files.base import File
|
||||
from django.db.models.base import Model
|
||||
from django.db.models.fields.files import FieldFile
|
||||
from django.db.models.query import QuerySet
|
||||
from django.forms.fields import Field
|
||||
from django.forms.forms import BaseForm
|
||||
from django.forms.renderers import DjangoTemplates
|
||||
@@ -16,18 +9,7 @@ from django.utils.safestring import SafeText
|
||||
|
||||
|
||||
class BoundField:
|
||||
initial: Optional[
|
||||
Union[
|
||||
List[django.db.models.base.Model],
|
||||
List[int],
|
||||
List[str],
|
||||
datetime.date,
|
||||
django.db.models.base.Model,
|
||||
django.db.models.query.QuerySet,
|
||||
int,
|
||||
str,
|
||||
]
|
||||
]
|
||||
initial: Any
|
||||
form: django.forms.forms.BaseForm = ...
|
||||
field: django.forms.fields.Field = ...
|
||||
name: str = ...
|
||||
@@ -57,22 +39,7 @@ class BoundField:
|
||||
def as_hidden(self, attrs: None = ..., **kwargs: Any) -> SafeText: ...
|
||||
@property
|
||||
def data(self) -> Any: ...
|
||||
def value(
|
||||
self
|
||||
) -> Optional[
|
||||
Union[
|
||||
List[Union[List[str], str]],
|
||||
List[int],
|
||||
date,
|
||||
time,
|
||||
Decimal,
|
||||
File,
|
||||
float,
|
||||
int,
|
||||
str,
|
||||
UUID,
|
||||
]
|
||||
]: ...
|
||||
def value(self) -> Any: ...
|
||||
def label_tag(
|
||||
self,
|
||||
contents: Optional[str] = ...,
|
||||
@@ -86,24 +53,7 @@ class BoundField:
|
||||
def auto_id(self) -> str: ...
|
||||
@property
|
||||
def id_for_label(self) -> str: ...
|
||||
def initial(
|
||||
self
|
||||
) -> Optional[
|
||||
Union[
|
||||
List[Union[int, str]],
|
||||
List[Model],
|
||||
date,
|
||||
time,
|
||||
timedelta,
|
||||
Model,
|
||||
FieldFile,
|
||||
QuerySet,
|
||||
float,
|
||||
int,
|
||||
str,
|
||||
UUID,
|
||||
]
|
||||
]: ...
|
||||
def initial(self) -> Any: ...
|
||||
def build_widget_attrs(
|
||||
self, attrs: Dict[str, str], widget: Optional[Widget] = ...
|
||||
) -> Dict[str, Union[bool, str]]: ...
|
||||
|
||||
+44
-442
@@ -4,27 +4,12 @@ from decimal import Decimal
|
||||
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
|
||||
from uuid import UUID
|
||||
|
||||
from django.contrib.admin.widgets import (AdminEmailInputWidget,
|
||||
AdminIntegerFieldWidget,
|
||||
AdminSplitDateTime,
|
||||
AdminTextareaWidget,
|
||||
AdminTextInputWidget,
|
||||
AdminURLFieldWidget,
|
||||
RelatedFieldWidgetWrapper)
|
||||
from django.contrib.auth.forms import (ReadOnlyPasswordHashField,
|
||||
ReadOnlyPasswordHashWidget)
|
||||
from django.core.files.base import File
|
||||
from django.core.files.uploadedfile import SimpleUploadedFile
|
||||
from django.db.models.base import Model
|
||||
from django.db.models.fields.files import FieldFile
|
||||
from django.forms.boundfield import BoundField
|
||||
from django.forms.forms import BaseForm
|
||||
from django.forms.models import ModelChoiceField
|
||||
from django.forms.widgets import (CheckboxInput, ClearableFileInput,
|
||||
EmailInput, HiddenInput, Input, MultiWidget,
|
||||
NumberInput, PasswordInput, RadioSelect,
|
||||
Select, SplitDateTimeWidget, Textarea,
|
||||
TextInput, Widget)
|
||||
from django.forms.widgets import Input, Select, Widget
|
||||
|
||||
|
||||
class Field:
|
||||
@@ -58,125 +43,14 @@ class Field:
|
||||
disabled: bool = ...,
|
||||
label_suffix: Optional[Any] = ...
|
||||
) -> None: ...
|
||||
def prepare_value(
|
||||
self,
|
||||
value: Optional[
|
||||
Union[
|
||||
Dict[str, str],
|
||||
List[Union[List[str], str]],
|
||||
date,
|
||||
time,
|
||||
Decimal,
|
||||
File,
|
||||
float,
|
||||
int,
|
||||
str,
|
||||
UUID,
|
||||
]
|
||||
],
|
||||
) -> Optional[
|
||||
Union[
|
||||
Dict[str, str],
|
||||
List[Union[List[str], str]],
|
||||
date,
|
||||
time,
|
||||
Decimal,
|
||||
File,
|
||||
float,
|
||||
int,
|
||||
str,
|
||||
UUID,
|
||||
]
|
||||
]: ...
|
||||
def to_python(
|
||||
self,
|
||||
value: Optional[
|
||||
Union[List[None], List[str], datetime, float, int, str]
|
||||
],
|
||||
) -> Optional[Union[List[None], List[str], datetime, float, int, str]]: ...
|
||||
def validate(
|
||||
self,
|
||||
value: Optional[
|
||||
Union[
|
||||
date,
|
||||
time,
|
||||
timedelta,
|
||||
Decimal,
|
||||
SimpleUploadedFile,
|
||||
Model,
|
||||
float,
|
||||
int,
|
||||
str,
|
||||
UUID,
|
||||
]
|
||||
],
|
||||
) -> None: ...
|
||||
def run_validators(
|
||||
self,
|
||||
value: Optional[
|
||||
Union[
|
||||
List[Union[int, str]],
|
||||
date,
|
||||
time,
|
||||
timedelta,
|
||||
Decimal,
|
||||
SimpleUploadedFile,
|
||||
Model,
|
||||
float,
|
||||
int,
|
||||
str,
|
||||
UUID,
|
||||
]
|
||||
],
|
||||
) -> None: ...
|
||||
def clean(
|
||||
self,
|
||||
value: Optional[
|
||||
Union[
|
||||
Dict[Any, Any],
|
||||
List[Dict[str, str]],
|
||||
List[List[str]],
|
||||
List[Union[int, str]],
|
||||
Tuple,
|
||||
date,
|
||||
time,
|
||||
Decimal,
|
||||
SimpleUploadedFile,
|
||||
float,
|
||||
int,
|
||||
str,
|
||||
]
|
||||
],
|
||||
) -> Optional[
|
||||
Union[
|
||||
List[str],
|
||||
date,
|
||||
time,
|
||||
timedelta,
|
||||
Decimal,
|
||||
SimpleUploadedFile,
|
||||
Model,
|
||||
float,
|
||||
int,
|
||||
str,
|
||||
UUID,
|
||||
]
|
||||
]: ...
|
||||
def bound_data(
|
||||
self,
|
||||
data: Optional[
|
||||
Union[List[Union[List[str], str]], datetime, Decimal, int, str]
|
||||
],
|
||||
initial: Optional[Union[List[str], date, float, int, str, UUID]],
|
||||
) -> Optional[
|
||||
Union[List[Union[List[str], str]], date, Decimal, int, str]
|
||||
]: ...
|
||||
def prepare_value(self, value: Any) -> Any: ...
|
||||
def to_python(self, value: Any) -> Any: ...
|
||||
def validate(self, value: Any) -> None: ...
|
||||
def run_validators(self, value: Any) -> None: ...
|
||||
def clean(self, value: Any) -> Any: ...
|
||||
def bound_data(self, data: Any, initial: Any) -> Any: ...
|
||||
def widget_attrs(self, widget: Widget) -> Dict[Any, Any]: ...
|
||||
def has_changed(
|
||||
self,
|
||||
initial: Optional[Union[date, time, Decimal, float, int, str]],
|
||||
data: Optional[str],
|
||||
) -> bool: ...
|
||||
def has_changed(self, initial: Any, data: Optional[str]) -> bool: ...
|
||||
def get_bound_field(
|
||||
self, form: BaseForm, field_name: str
|
||||
) -> BoundField: ...
|
||||
@@ -187,34 +61,7 @@ class Field:
|
||||
int,
|
||||
Union[
|
||||
List[Tuple[str, str]],
|
||||
List[
|
||||
Union[
|
||||
List[Tuple[str, str]],
|
||||
CharField,
|
||||
ChoiceField,
|
||||
IntegerField,
|
||||
EmailInput,
|
||||
NumberInput,
|
||||
Select,
|
||||
TextInput,
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
CharField,
|
||||
DateField,
|
||||
EmailInput,
|
||||
PasswordInput,
|
||||
TextInput,
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[CharField, DateTimeField, DecimalField, TextInput]
|
||||
],
|
||||
List[Union[CharField, HiddenInput, TextInput]],
|
||||
List[
|
||||
Union[DateTimeField, TimeField, HiddenInput, TextInput]
|
||||
],
|
||||
List[Union[List[Tuple[str, str]], Field, Widget]],
|
||||
OrderedDict,
|
||||
Field,
|
||||
Widget,
|
||||
@@ -223,176 +70,10 @@ class Field:
|
||||
Dict[
|
||||
int,
|
||||
Union[
|
||||
List[Tuple[str, str]],
|
||||
List[
|
||||
Union[
|
||||
List[Tuple[str, str]],
|
||||
CharField,
|
||||
DateField,
|
||||
TypedChoiceField,
|
||||
Select,
|
||||
TextInput,
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
AdminIntegerFieldWidget,
|
||||
RelatedFieldWidgetWrapper,
|
||||
IntegerField,
|
||||
ModelChoiceField,
|
||||
Select,
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
BooleanField,
|
||||
CharField,
|
||||
CheckboxInput,
|
||||
TextInput,
|
||||
Textarea,
|
||||
]
|
||||
],
|
||||
List[Union[NullBooleanField, RadioSelect]],
|
||||
List[Union[List[Any], ChoiceField, Select]],
|
||||
OrderedDict,
|
||||
Field,
|
||||
Widget,
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
int,
|
||||
Union[
|
||||
List[
|
||||
Union[
|
||||
List[Any],
|
||||
List[Union[Tuple[int, str], Tuple[str, str]]],
|
||||
AdminSplitDateTime,
|
||||
RelatedFieldWidgetWrapper,
|
||||
ReadOnlyPasswordHashField,
|
||||
ReadOnlyPasswordHashWidget,
|
||||
BooleanField,
|
||||
CharField,
|
||||
ChoiceField,
|
||||
SplitDateTimeField,
|
||||
CheckboxInput,
|
||||
EmailInput,
|
||||
Select,
|
||||
TextInput,
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
List[Tuple[str, str]],
|
||||
RelatedFieldWidgetWrapper,
|
||||
CharField,
|
||||
ModelChoiceField,
|
||||
MultiWidget,
|
||||
Select,
|
||||
TextInput,
|
||||
]
|
||||
],
|
||||
List[Union[Tuple[int, str], Tuple[str, str]]],
|
||||
List[
|
||||
Union[
|
||||
AdminTextareaWidget,
|
||||
AdminURLFieldWidget,
|
||||
CharField,
|
||||
DateField,
|
||||
IntegerField,
|
||||
TimeField,
|
||||
ModelChoiceField,
|
||||
NumberInput,
|
||||
TextInput,
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
RelatedFieldWidgetWrapper,
|
||||
CharField,
|
||||
DateField,
|
||||
SplitDateTimeField,
|
||||
ModelChoiceField,
|
||||
PasswordInput,
|
||||
Select,
|
||||
SplitDateTimeWidget,
|
||||
TextInput,
|
||||
Textarea,
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
ReadOnlyPasswordHashField,
|
||||
ReadOnlyPasswordHashWidget,
|
||||
BooleanField,
|
||||
CharField,
|
||||
DateTimeField,
|
||||
ModelChoiceField,
|
||||
CheckboxInput,
|
||||
EmailInput,
|
||||
Select,
|
||||
TextInput,
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
CharField,
|
||||
DateField,
|
||||
TimeField,
|
||||
ModelChoiceField,
|
||||
EmailInput,
|
||||
MultiWidget,
|
||||
TextInput,
|
||||
Textarea,
|
||||
]
|
||||
],
|
||||
List[Union[NullBooleanField, HiddenInput]],
|
||||
List[Union[ModelChoiceField, RadioSelect]],
|
||||
OrderedDict,
|
||||
Field,
|
||||
Widget,
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
int,
|
||||
Union[
|
||||
List[
|
||||
Union[
|
||||
List[Union[Tuple[int, str], Tuple[str, str]]],
|
||||
AdminIntegerFieldWidget,
|
||||
AdminTextInputWidget,
|
||||
CharField,
|
||||
IntegerField,
|
||||
TypedChoiceField,
|
||||
Select,
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
List[Union[Tuple[int, str], Tuple[str, str]]],
|
||||
RelatedFieldWidgetWrapper,
|
||||
TypedChoiceField,
|
||||
ModelChoiceField,
|
||||
Select,
|
||||
]
|
||||
],
|
||||
List[Union[Tuple[int, str], Tuple[str, str]]],
|
||||
List[
|
||||
Union[
|
||||
CharField, FileField, ClearableFileInput, TextInput
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
DateField,
|
||||
DateTimeField,
|
||||
IntegerField,
|
||||
TimeField,
|
||||
HiddenInput,
|
||||
TextInput,
|
||||
]
|
||||
],
|
||||
OrderedDict,
|
||||
Field,
|
||||
Widget,
|
||||
ChoiceField,
|
||||
Select,
|
||||
],
|
||||
],
|
||||
],
|
||||
@@ -410,8 +91,7 @@ class CharField(Field):
|
||||
show_hidden_initial: bool
|
||||
validators: List[
|
||||
Union[
|
||||
django.core.validators.MaxLengthValidator,
|
||||
django.core.validators.MinLengthValidator,
|
||||
django.core.validators.BaseValidator,
|
||||
django.core.validators.ProhibitNullCharactersValidator,
|
||||
]
|
||||
]
|
||||
@@ -446,12 +126,7 @@ class IntegerField(Field):
|
||||
min_value: Optional[int]
|
||||
required: bool
|
||||
show_hidden_initial: bool
|
||||
validators: List[
|
||||
Union[
|
||||
django.core.validators.MaxValueValidator,
|
||||
django.core.validators.MinValueValidator,
|
||||
]
|
||||
]
|
||||
validators: List[django.core.validators.BaseValidator]
|
||||
widget: django.forms.widgets.NumberInput = ...
|
||||
default_error_messages: Any = ...
|
||||
re_decimal: Any = ...
|
||||
@@ -463,7 +138,7 @@ class IntegerField(Field):
|
||||
**kwargs: Any
|
||||
) -> None: ...
|
||||
def to_python(
|
||||
self, value: Optional[Union[float, int, str]]
|
||||
self, value: Optional[Union[float, str]]
|
||||
) -> Optional[int]: ...
|
||||
def widget_attrs(
|
||||
self, widget: Widget
|
||||
@@ -477,20 +152,15 @@ class FloatField(IntegerField):
|
||||
label: Optional[str]
|
||||
label_suffix: None
|
||||
localize: bool
|
||||
max_value: Optional[Union[float, int]]
|
||||
min_value: Optional[Union[float, int]]
|
||||
max_value: Optional[float]
|
||||
min_value: Optional[float]
|
||||
required: bool
|
||||
show_hidden_initial: bool
|
||||
validators: List[
|
||||
Union[
|
||||
django.core.validators.MaxValueValidator,
|
||||
django.core.validators.MinValueValidator,
|
||||
]
|
||||
]
|
||||
validators: List[django.core.validators.BaseValidator]
|
||||
widget: django.forms.widgets.NumberInput
|
||||
default_error_messages: Any = ...
|
||||
def to_python(
|
||||
self, value: Optional[Union[float, int, str]]
|
||||
self, value: Optional[Union[float, str]]
|
||||
) -> Optional[float]: ...
|
||||
def validate(self, value: Optional[float]) -> None: ...
|
||||
def widget_attrs(
|
||||
@@ -513,9 +183,8 @@ class DecimalField(IntegerField):
|
||||
show_hidden_initial: bool
|
||||
validators: List[
|
||||
Union[
|
||||
django.core.validators.BaseValidator,
|
||||
django.core.validators.DecimalValidator,
|
||||
django.core.validators.MaxValueValidator,
|
||||
django.core.validators.MinValueValidator,
|
||||
]
|
||||
]
|
||||
widget: django.forms.widgets.NumberInput
|
||||
@@ -636,8 +305,7 @@ class RegexField(CharField):
|
||||
strip: bool
|
||||
validators: List[
|
||||
Union[
|
||||
django.core.validators.MaxLengthValidator,
|
||||
django.core.validators.MinLengthValidator,
|
||||
django.core.validators.BaseValidator,
|
||||
django.core.validators.ProhibitNullCharactersValidator,
|
||||
django.core.validators.RegexValidator,
|
||||
]
|
||||
@@ -662,9 +330,8 @@ class EmailField(CharField):
|
||||
strip: bool
|
||||
validators: List[
|
||||
Union[
|
||||
django.core.validators.BaseValidator,
|
||||
django.core.validators.EmailValidator,
|
||||
django.core.validators.MaxLengthValidator,
|
||||
django.core.validators.MinLengthValidator,
|
||||
django.core.validators.ProhibitNullCharactersValidator,
|
||||
]
|
||||
]
|
||||
@@ -809,66 +476,14 @@ class ChoiceField(Field):
|
||||
def __init__(self, *, choices: Any = ..., **kwargs: Any) -> None: ...
|
||||
def __deepcopy__(
|
||||
self,
|
||||
memo: Union[
|
||||
Dict[
|
||||
int,
|
||||
Union[
|
||||
List[
|
||||
Union[
|
||||
List[Tuple[str, str]],
|
||||
CharField,
|
||||
ChoiceField,
|
||||
IntegerField,
|
||||
EmailInput,
|
||||
NumberInput,
|
||||
Select,
|
||||
TextInput,
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
List[Tuple[str, str]],
|
||||
CharField,
|
||||
DateField,
|
||||
TypedChoiceField,
|
||||
Select,
|
||||
TextInput,
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
List[Union[Tuple[int, str], Tuple[str, str]]],
|
||||
RelatedFieldWidgetWrapper,
|
||||
TypedChoiceField,
|
||||
ModelChoiceField,
|
||||
Select,
|
||||
]
|
||||
],
|
||||
List[Union[Tuple[int, str], Tuple[str, str]]],
|
||||
List[
|
||||
Union[
|
||||
CharField,
|
||||
DateField,
|
||||
ModelChoiceField,
|
||||
Select,
|
||||
TextInput,
|
||||
Textarea,
|
||||
]
|
||||
],
|
||||
OrderedDict,
|
||||
Field,
|
||||
Widget,
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
int,
|
||||
Union[
|
||||
List[Union[CharField, PasswordInput, TextInput]],
|
||||
List[Union[MultiWidget, TextInput]],
|
||||
OrderedDict,
|
||||
Field,
|
||||
Widget,
|
||||
],
|
||||
memo: Dict[
|
||||
int,
|
||||
Union[
|
||||
List[Tuple[str, str]],
|
||||
List[Union[List[Tuple[str, str]], Field, Widget]],
|
||||
OrderedDict,
|
||||
Field,
|
||||
Widget,
|
||||
],
|
||||
],
|
||||
) -> ChoiceField: ...
|
||||
@@ -892,7 +507,7 @@ class TypedChoiceField(ChoiceField):
|
||||
) -> None: ...
|
||||
def clean(
|
||||
self, value: Optional[str]
|
||||
) -> Optional[Union[Decimal, float, int, str]]: ...
|
||||
) -> Optional[Union[Decimal, float, str]]: ...
|
||||
|
||||
class MultipleChoiceField(ChoiceField):
|
||||
disabled: bool
|
||||
@@ -969,33 +584,20 @@ class MultiValueField(Field):
|
||||
) -> None: ...
|
||||
def __deepcopy__(
|
||||
self,
|
||||
memo: Dict[
|
||||
int,
|
||||
Union[
|
||||
List[Tuple[str, str]],
|
||||
List[
|
||||
Union[
|
||||
List[Tuple[str, str]],
|
||||
AdminEmailInputWidget,
|
||||
RelatedFieldWidgetWrapper,
|
||||
ReadOnlyPasswordHashField,
|
||||
ReadOnlyPasswordHashWidget,
|
||||
BooleanField,
|
||||
CharField,
|
||||
SplitDateTimeField,
|
||||
ModelChoiceField,
|
||||
CheckboxInput,
|
||||
MultiWidget,
|
||||
Select,
|
||||
TextInput,
|
||||
]
|
||||
memo: Union[
|
||||
Dict[
|
||||
int,
|
||||
Union[
|
||||
List[Tuple[str, str]],
|
||||
List[Union[List[Tuple[str, str]], Widget]],
|
||||
OrderedDict,
|
||||
Field,
|
||||
Widget,
|
||||
],
|
||||
List[
|
||||
Union[AdminTextInputWidget, AdminTextareaWidget, CharField]
|
||||
],
|
||||
OrderedDict,
|
||||
Field,
|
||||
Widget,
|
||||
],
|
||||
Dict[
|
||||
int,
|
||||
Union[List[Union[Field, Widget]], OrderedDict, Field, Widget],
|
||||
],
|
||||
],
|
||||
) -> MultiValueField: ...
|
||||
|
||||
@@ -57,8 +57,8 @@ class BaseForm:
|
||||
prefix: Optional[str] = ...,
|
||||
initial: Optional[
|
||||
Union[
|
||||
Dict[str, List[int]],
|
||||
Dict[str, Optional[Union[List[Model], date, int, str]]],
|
||||
Dict[str, Optional[Union[List[int], date, int, str]]],
|
||||
Dict[str, Union[List[Model], Model, QuerySet]],
|
||||
Dict[str, Union[List[str], str]],
|
||||
Dict[str, Union[FieldFile, int, str]],
|
||||
@@ -93,7 +93,7 @@ class BaseForm:
|
||||
self
|
||||
) -> Union[
|
||||
Dict[str, Optional[Union[int, str]]],
|
||||
Dict[str, Union[date, time, Decimal, float, int]],
|
||||
Dict[str, Union[date, time, Decimal, float]],
|
||||
Dict[str, Union[date, str]],
|
||||
Dict[str, SimpleUploadedFile],
|
||||
Dict[str, QuerySet],
|
||||
@@ -105,20 +105,6 @@ class BaseForm:
|
||||
def is_multipart(self): ...
|
||||
def hidden_fields(self): ...
|
||||
def visible_fields(self): ...
|
||||
def get_initial_for_field(
|
||||
self, field: Field, field_name: str
|
||||
) -> Optional[
|
||||
Union[
|
||||
List[Model],
|
||||
List[int],
|
||||
List[str],
|
||||
date,
|
||||
Model,
|
||||
FieldFile,
|
||||
QuerySet,
|
||||
int,
|
||||
str,
|
||||
]
|
||||
]: ...
|
||||
def get_initial_for_field(self, field: Field, field_name: str) -> Any: ...
|
||||
|
||||
class Form(BaseForm): ...
|
||||
|
||||
@@ -6,15 +6,7 @@ from typing import (Any, Callable, Dict, Iterator, List, Optional, Tuple, Type,
|
||||
from unittest.mock import MagicMock
|
||||
from uuid import UUID
|
||||
|
||||
from django.contrib.admin.widgets import (AdminEmailInputWidget,
|
||||
AdminFileWidget, AdminSplitDateTime,
|
||||
AdminTextInputWidget,
|
||||
AdminURLFieldWidget,
|
||||
FilteredSelectMultiple,
|
||||
RelatedFieldWidgetWrapper)
|
||||
from django.contrib.auth.forms import (ReadOnlyPasswordHashField,
|
||||
ReadOnlyPasswordHashWidget,
|
||||
UserChangeForm, UserCreationForm)
|
||||
from django.contrib.auth.forms import UserChangeForm, UserCreationForm
|
||||
from django.contrib.flatpages.forms import FlatpageForm
|
||||
from django.core.files.base import File
|
||||
from django.core.files.uploadedfile import SimpleUploadedFile
|
||||
@@ -23,15 +15,11 @@ from django.db.models.fields.files import FieldFile
|
||||
from django.db.models.manager import Manager
|
||||
from django.db.models.query import QuerySet
|
||||
from django.db.models.query_utils import Q
|
||||
from django.forms.fields import (BooleanField, CharField, ChoiceField,
|
||||
DateField, DateTimeField, Field, FileField,
|
||||
IntegerField, SplitDateTimeField, URLField)
|
||||
from django.forms.fields import CharField, ChoiceField, Field
|
||||
from django.forms.forms import BaseForm, DeclarativeFieldsMetaclass
|
||||
from django.forms.formsets import BaseFormSet
|
||||
from django.forms.utils import ErrorList
|
||||
from django.forms.widgets import (CheckboxInput, DateTimeInput, NumberInput,
|
||||
RadioSelect, Select, SelectMultiple,
|
||||
Textarea, TextInput, Widget)
|
||||
from django.forms.widgets import Widget
|
||||
|
||||
ALL_FIELDS: str
|
||||
|
||||
@@ -84,7 +72,6 @@ class ModelFormOptions:
|
||||
options: Optional[
|
||||
Type[
|
||||
Union[
|
||||
Any,
|
||||
UserChangeForm.Meta,
|
||||
UserCreationForm.Meta,
|
||||
FlatpageForm.Meta,
|
||||
@@ -136,7 +123,7 @@ class BaseModelForm(BaseForm):
|
||||
Dict[str, Optional[Union[bool, datetime, QuerySet, str]]],
|
||||
Dict[str, Optional[Union[date, Model, QuerySet, str]]],
|
||||
Dict[str, Optional[Union[Model, int, str]]],
|
||||
Dict[str, Union[date, Decimal, int, str]],
|
||||
Dict[str, Union[datetime, Decimal, int, str]],
|
||||
Dict[str, Union[File, str]],
|
||||
]: ...
|
||||
def validate_unique(self) -> None: ...
|
||||
@@ -339,96 +326,13 @@ class ModelChoiceField(ChoiceField):
|
||||
]: ...
|
||||
def __deepcopy__(
|
||||
self,
|
||||
memo: Union[
|
||||
Dict[
|
||||
int,
|
||||
Union[
|
||||
List[
|
||||
Union[
|
||||
AdminEmailInputWidget,
|
||||
AdminTextInputWidget,
|
||||
FilteredSelectMultiple,
|
||||
RelatedFieldWidgetWrapper,
|
||||
ReadOnlyPasswordHashField,
|
||||
ReadOnlyPasswordHashWidget,
|
||||
BooleanField,
|
||||
CharField,
|
||||
ModelMultipleChoiceField,
|
||||
CheckboxInput,
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
AdminSplitDateTime,
|
||||
RelatedFieldWidgetWrapper,
|
||||
CharField,
|
||||
DateField,
|
||||
SplitDateTimeField,
|
||||
ModelChoiceField,
|
||||
Select,
|
||||
TextInput,
|
||||
Textarea,
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
AdminSplitDateTime,
|
||||
BooleanField,
|
||||
CharField,
|
||||
SplitDateTimeField,
|
||||
CheckboxInput,
|
||||
TextInput,
|
||||
Textarea,
|
||||
]
|
||||
],
|
||||
List[Union[AdminURLFieldWidget, URLField]],
|
||||
List[
|
||||
Union[
|
||||
ReadOnlyPasswordHashField,
|
||||
ReadOnlyPasswordHashWidget,
|
||||
BooleanField,
|
||||
DateTimeField,
|
||||
ModelMultipleChoiceField,
|
||||
CheckboxInput,
|
||||
DateTimeInput,
|
||||
SelectMultiple,
|
||||
]
|
||||
],
|
||||
List[Union[IntegerField, NumberInput]],
|
||||
List[Union[ModelChoiceField, RadioSelect]],
|
||||
OrderedDict,
|
||||
Field,
|
||||
Widget,
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
int,
|
||||
Union[
|
||||
List[
|
||||
Union[
|
||||
AdminFileWidget,
|
||||
AdminTextInputWidget,
|
||||
CharField,
|
||||
FileField,
|
||||
]
|
||||
],
|
||||
OrderedDict,
|
||||
AdminFileWidget,
|
||||
AdminTextInputWidget,
|
||||
CharField,
|
||||
FileField,
|
||||
],
|
||||
],
|
||||
memo: Dict[
|
||||
int, Union[List[Union[Field, Widget]], OrderedDict, Field, Widget]
|
||||
],
|
||||
) -> ModelChoiceField: ...
|
||||
def label_from_instance(self, obj: Model) -> str: ...
|
||||
choices: Any = ...
|
||||
def prepare_value(
|
||||
self,
|
||||
value: Optional[
|
||||
Union[Dict[str, str], List[str], Model, int, str, UUID]
|
||||
],
|
||||
) -> Optional[Union[Dict[str, str], List[str], int, str, UUID]]: ...
|
||||
def prepare_value(self, value: Any) -> Any: ...
|
||||
def to_python(
|
||||
self,
|
||||
value: Optional[Union[List[Dict[str, str]], List[List[str]], int, str]],
|
||||
@@ -526,19 +430,7 @@ class ModelMultipleChoiceField(ModelChoiceField):
|
||||
],
|
||||
) -> QuerySet: ...
|
||||
def prepare_value(
|
||||
self,
|
||||
value: Optional[
|
||||
Union[
|
||||
List[Dict[str, str]],
|
||||
List[List[str]],
|
||||
List[Union[int, str]],
|
||||
List[Model],
|
||||
Tuple,
|
||||
Model,
|
||||
QuerySet,
|
||||
str,
|
||||
]
|
||||
],
|
||||
self, value: Any
|
||||
) -> Optional[
|
||||
Union[
|
||||
List[Dict[str, str]],
|
||||
|
||||
+244
-577
@@ -22,34 +22,7 @@ class BaseRenderer:
|
||||
str,
|
||||
Optional[
|
||||
Union[
|
||||
Dict[str, Union[bool, Decimal, str]],
|
||||
List[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[Any, Any], bool, time, str
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
]
|
||||
],
|
||||
bool,
|
||||
str,
|
||||
]
|
||||
],
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Dict[
|
||||
str,
|
||||
Optional[
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
Dict[str, Union[bool, float, str]],
|
||||
List[
|
||||
Union[
|
||||
Dict[
|
||||
@@ -80,21 +53,10 @@ class BaseRenderer:
|
||||
]
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Optional[
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
bool,
|
||||
str,
|
||||
]
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
List[Any],
|
||||
List[
|
||||
Tuple[
|
||||
None,
|
||||
@@ -129,73 +91,19 @@ class BaseRenderer:
|
||||
str,
|
||||
Optional[
|
||||
Union[
|
||||
Dict[str, Union[float, int, str]],
|
||||
Dict[str, Union[Decimal, int, str]],
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Optional[Union[Dict[str, str], bool, str]],
|
||||
]
|
||||
],
|
||||
bool,
|
||||
int,
|
||||
str,
|
||||
]
|
||||
],
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[Any, Any],
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[Any, Any],
|
||||
List[
|
||||
Union[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[Any, Any],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, bool],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
]
|
||||
],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Dict[
|
||||
@@ -204,14 +112,11 @@ class BaseRenderer:
|
||||
Dict[Any, Any],
|
||||
List[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[Any, Any], bool, time, str],
|
||||
]
|
||||
Dict[str, Union[Dict[Any, Any], bool, str]]
|
||||
],
|
||||
int,
|
||||
int,
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
@@ -244,41 +149,24 @@ class BaseRenderer:
|
||||
str,
|
||||
],
|
||||
],
|
||||
Dict[str, Union[Dict[Any, Any], bool, str]],
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, bool],
|
||||
List[
|
||||
Union[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, bool],
|
||||
bool,
|
||||
str,
|
||||
Union[
|
||||
Dict[Any, Any],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, bool],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
@@ -288,6 +176,41 @@ class BaseRenderer:
|
||||
],
|
||||
]
|
||||
],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[Any, Any],
|
||||
List[
|
||||
Union[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[Any, Any], bool, str],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
str,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[str, bool], bool, str],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
bool,
|
||||
str,
|
||||
@@ -304,108 +227,12 @@ class BaseRenderer:
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[str, Union[Dict[str, str], int, str]]
|
||||
],
|
||||
int,
|
||||
]
|
||||
],
|
||||
List[
|
||||
Union[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
]
|
||||
],
|
||||
bool,
|
||||
Dict[
|
||||
str,
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
List[
|
||||
Union[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[Any, Any],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, bool],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[bool, str]], bool, str
|
||||
],
|
||||
],
|
||||
]
|
||||
],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
List[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Union[
|
||||
Dict[
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
int,
|
||||
str,
|
||||
Union[Dict[Any, Any], bool, str],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, bool],
|
||||
Set[str],
|
||||
int,
|
||||
str,
|
||||
],
|
||||
],
|
||||
]
|
||||
],
|
||||
@@ -426,184 +253,11 @@ class BaseRenderer:
|
||||
Dict[str, Union[bool, str]],
|
||||
List[
|
||||
Union[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[Any, Any], bool, str],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str, Union[Dict[Any, Any], int, str]
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[str, bool], int, str],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
List[
|
||||
Union[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
int,
|
||||
str,
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
List[
|
||||
Union[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[str, str], bool, str],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[int, str]],
|
||||
List[
|
||||
Union[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str, Union[Dict[Any, Any], int, str]
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[str, bool], bool, str],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[int, str]],
|
||||
List[
|
||||
Union[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[str, str], bool, str],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
Dict[
|
||||
str,
|
||||
List[
|
||||
Union[
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
@@ -611,21 +265,40 @@ class BaseRenderer:
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, str], bool, str
|
||||
],
|
||||
],
|
||||
]
|
||||
]
|
||||
],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
List[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, bool],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
int,
|
||||
],
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
int,
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
@@ -635,7 +308,7 @@ class BaseRenderer:
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, bool],
|
||||
Dict[str, Union[bool, str]],
|
||||
List[
|
||||
Union[
|
||||
Tuple[
|
||||
@@ -643,17 +316,17 @@ class BaseRenderer:
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[Any, Any], bool, str],
|
||||
Union[Dict[str, bool], bool, str],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
None,
|
||||
str,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[str, bool], bool, str],
|
||||
Union[Dict[Any, Any], bool, str],
|
||||
]
|
||||
],
|
||||
int,
|
||||
@@ -666,6 +339,56 @@ class BaseRenderer:
|
||||
],
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[int, str]],
|
||||
List[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[Any, Any], time, int, str],
|
||||
]
|
||||
],
|
||||
int,
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[int, str]],
|
||||
List[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, bool], Set[str], int, str
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Dict[
|
||||
@@ -673,37 +396,12 @@ class BaseRenderer:
|
||||
Union[
|
||||
Dict[str, bool],
|
||||
List[
|
||||
Union[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[str, bool], bool, str],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
str,
|
||||
List[
|
||||
Union[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[Any, Any], bool, str
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, bool], bool, str
|
||||
],
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
Tuple[
|
||||
List[
|
||||
Dict[str, Union[Dict[str, bool], bool, str]]
|
||||
],
|
||||
int,
|
||||
int,
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
@@ -732,30 +430,14 @@ class BaseRenderer:
|
||||
Union[
|
||||
Dict[str, str],
|
||||
List[
|
||||
Union[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[Any, Any], bool, str],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[str, bool], bool, str],
|
||||
]
|
||||
],
|
||||
int,
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[str, Union[Dict[str, str], int, str]]
|
||||
],
|
||||
int,
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
@@ -784,28 +466,10 @@ class BaseRenderer:
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[str, str], bool, str],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
str,
|
||||
List[
|
||||
Union[
|
||||
Dict[
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
bool,
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, str], bool, str
|
||||
],
|
||||
],
|
||||
]
|
||||
],
|
||||
@@ -909,7 +573,34 @@ class BaseRenderer:
|
||||
str,
|
||||
Union[
|
||||
Dict[Any, Any],
|
||||
List[Dict[str, Union[Dict[str, str], bool, str]]],
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[Any, Any],
|
||||
List[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, bool],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
@@ -924,47 +615,7 @@ class BaseRenderer:
|
||||
str,
|
||||
Union[
|
||||
Dict[Any, Any],
|
||||
List[
|
||||
Union[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[Any, Any], bool, str
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
str,
|
||||
List[
|
||||
Union[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[Any, Any],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, bool],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
List[Dict[str, Union[Dict[str, str], bool, str]]],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
@@ -1000,47 +651,8 @@ class BaseRenderer:
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
List[
|
||||
Union[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[Any, Any], bool, str
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, bool], bool, str
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
str,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[Any, Any], bool, str
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
]
|
||||
],
|
||||
Dict[str, str],
|
||||
List[Dict[str, Union[Dict[str, str], bool, str]]],
|
||||
List[str],
|
||||
bool,
|
||||
str,
|
||||
@@ -1056,8 +668,18 @@ class BaseRenderer:
|
||||
str,
|
||||
Union[
|
||||
Dict[str, str],
|
||||
List[Dict[str, Union[Dict[str, str], bool, str]]],
|
||||
List[str],
|
||||
List[
|
||||
Tuple[
|
||||
None,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[Dict[str, str], bool, str],
|
||||
]
|
||||
],
|
||||
int,
|
||||
]
|
||||
],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
@@ -1065,6 +687,51 @@ class BaseRenderer:
|
||||
str,
|
||||
],
|
||||
],
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, str],
|
||||
List[
|
||||
Union[
|
||||
Tuple[
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, str], bool, str
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
int,
|
||||
],
|
||||
Tuple[
|
||||
str,
|
||||
List[
|
||||
Dict[
|
||||
str,
|
||||
Union[
|
||||
Dict[str, Union[bool, str]],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
]
|
||||
],
|
||||
int,
|
||||
],
|
||||
]
|
||||
],
|
||||
List[str],
|
||||
bool,
|
||||
str,
|
||||
],
|
||||
],
|
||||
List[Dict[str, str]],
|
||||
],
|
||||
],
|
||||
Dict[str, Union[bool, str]],
|
||||
],
|
||||
request: None = ...,
|
||||
|
||||
+273
-991
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user