mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 16:27:09 +08:00
Fix boundfield method parameters (#741)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Dict, List, Optional, Union
|
||||
from typing import Any, Dict, Iterable, List, Optional, Union
|
||||
|
||||
from django.forms.fields import Field
|
||||
from django.forms.forms import BaseForm
|
||||
@@ -25,17 +25,19 @@ class BoundField:
|
||||
def __getitem__(self, idx: Union[int, slice, str]) -> Union[List[BoundWidget], BoundWidget]: ...
|
||||
@property
|
||||
def errors(self) -> ErrorList: ...
|
||||
def as_widget(self, widget: Optional[Widget] = ..., attrs: None = ..., only_initial: bool = ...) -> SafeText: ...
|
||||
def as_text(self, attrs: None = ..., **kwargs: Any) -> SafeText: ...
|
||||
def as_textarea(self, attrs: None = ..., **kwargs: Any) -> SafeText: ...
|
||||
def as_hidden(self, attrs: None = ..., **kwargs: Any) -> SafeText: ...
|
||||
def as_widget(
|
||||
self, widget: Optional[Widget] = ..., attrs: Optional[Dict[str, str]] = ..., only_initial: bool = ...
|
||||
) -> SafeText: ...
|
||||
def as_text(self, attrs: Optional[Dict[str, str]] = ..., **kwargs: Any) -> SafeText: ...
|
||||
def as_textarea(self, attrs: Optional[Dict[str, str]] = ..., **kwargs: Any) -> SafeText: ...
|
||||
def as_hidden(self, attrs: Optional[Dict[str, str]] = ..., **kwargs: Any) -> SafeText: ...
|
||||
@property
|
||||
def data(self) -> Any: ...
|
||||
def value(self) -> Any: ...
|
||||
def label_tag(
|
||||
self, contents: Optional[str] = ..., attrs: Optional[Dict[str, str]] = ..., label_suffix: Optional[str] = ...
|
||||
) -> SafeText: ...
|
||||
def css_classes(self, extra_classes: None = ...) -> str: ...
|
||||
def css_classes(self, extra_classes: Union[str, Iterable[str], None] = ...) -> str: ...
|
||||
@property
|
||||
def is_hidden(self) -> bool: ...
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user