mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-09 13:35:01 +08:00
move generated stubs to separate directory, too messty
This commit is contained in:
94
django-stubs-generated/forms/formsets.pyi
Normal file
94
django-stubs-generated/forms/formsets.pyi
Normal file
@@ -0,0 +1,94 @@
|
||||
import collections
|
||||
from typing import Any, List, Optional, Union, Dict, Type
|
||||
|
||||
from django.forms import Form
|
||||
from django.forms.renderers import BaseRenderer
|
||||
from django.forms.utils import ErrorList
|
||||
|
||||
|
||||
class ManagementForm(Form):
|
||||
auto_id: Union[bool, str]
|
||||
cleaned_data: Dict[str, Optional[int]]
|
||||
data: Dict[str, Union[List[int], int, str]]
|
||||
empty_permitted: bool
|
||||
error_class: Type[ErrorList]
|
||||
fields: collections.OrderedDict
|
||||
files: Dict[Any, Any]
|
||||
initial: Dict[str, int]
|
||||
is_bound: bool
|
||||
label_suffix: str
|
||||
prefix: str
|
||||
renderer: BaseRenderer
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
|
||||
class BaseFormSet:
|
||||
is_bound: Any = ...
|
||||
prefix: Any = ...
|
||||
auto_id: Any = ...
|
||||
data: Any = ...
|
||||
files: Any = ...
|
||||
initial: Any = ...
|
||||
form_kwargs: Any = ...
|
||||
error_class: Any = ...
|
||||
def __init__(
|
||||
self,
|
||||
data: Optional[Any] = ...,
|
||||
files: Optional[Any] = ...,
|
||||
auto_id: str = ...,
|
||||
prefix: Optional[Any] = ...,
|
||||
initial: Optional[Any] = ...,
|
||||
error_class: Any = ...,
|
||||
form_kwargs: Optional[Any] = ...,
|
||||
) -> None: ...
|
||||
def __iter__(self): ...
|
||||
def __getitem__(self, index: Any): ...
|
||||
def __len__(self): ...
|
||||
def __bool__(self): ...
|
||||
def management_form(self): ...
|
||||
def total_form_count(self): ...
|
||||
def initial_form_count(self): ...
|
||||
def forms(self): ...
|
||||
def get_form_kwargs(self, index: Any): ...
|
||||
@property
|
||||
def initial_forms(self): ...
|
||||
@property
|
||||
def extra_forms(self): ...
|
||||
@property
|
||||
def empty_form(self): ...
|
||||
@property
|
||||
def cleaned_data(self): ...
|
||||
@property
|
||||
def deleted_forms(self): ...
|
||||
@property
|
||||
def ordered_forms(self): ...
|
||||
@classmethod
|
||||
def get_default_prefix(cls): ...
|
||||
def non_form_errors(self): ...
|
||||
@property
|
||||
def errors(self): ...
|
||||
def total_error_count(self): ...
|
||||
def is_valid(self): ...
|
||||
def full_clean(self): ...
|
||||
def clean(self) -> None: ...
|
||||
def has_changed(self): ...
|
||||
def add_fields(self, form: Any, index: Any) -> None: ...
|
||||
def add_prefix(self, index: Any): ...
|
||||
def is_multipart(self): ...
|
||||
@property
|
||||
def media(self): ...
|
||||
def as_table(self): ...
|
||||
def as_p(self): ...
|
||||
def as_ul(self): ...
|
||||
|
||||
def formset_factory(
|
||||
form: Any,
|
||||
formset: Any = ...,
|
||||
extra: int = ...,
|
||||
can_order: bool = ...,
|
||||
can_delete: bool = ...,
|
||||
max_num: Optional[Any] = ...,
|
||||
validate_max: bool = ...,
|
||||
min_num: Optional[Any] = ...,
|
||||
validate_min: bool = ...,
|
||||
): ...
|
||||
def all_valid(formsets: List[Any]) -> bool: ...
|
||||
Reference in New Issue
Block a user