diff --git a/django-stubs/forms/widgets.pyi b/django-stubs/forms/widgets.pyi index 3ad2fc727..2207a8a60 100644 --- a/django-stubs/forms/widgets.pyi +++ b/django-stubs/forms/widgets.pyi @@ -93,6 +93,7 @@ class MultipleHiddenInput(HiddenInput): template_name: str class FileInput(Input): + allow_multiple_selected: bool input_type: str template_name: str needs_multipart_form: bool @@ -108,6 +109,7 @@ class ClearableFileInput(FileInput): initial_text: str input_text: str template_name: str + checked: bool def clear_checkbox_name(self, name: str) -> str: ... def clear_checkbox_id(self, name: str) -> str: ... def is_initial(self, value: File | str | None) -> bool: ... diff --git a/scripts/stubtest/allowlist_todo.txt b/scripts/stubtest/allowlist_todo.txt index bb0baa90c..111c84dcd 100644 --- a/scripts/stubtest/allowlist_todo.txt +++ b/scripts/stubtest/allowlist_todo.txt @@ -424,7 +424,6 @@ django.contrib.gis.forms.EmailInput.__slotnames__ django.contrib.gis.forms.Field.__deepcopy__ django.contrib.gis.forms.Field.hidden_widget django.contrib.gis.forms.FileField.bound_data -django.contrib.gis.forms.FileInput.allow_multiple_selected django.contrib.gis.forms.HiddenInput.__slotnames__ django.contrib.gis.forms.InlineForeignKeyField django.contrib.gis.forms.Input @@ -1309,7 +1308,6 @@ django.forms.EmailInput.__slotnames__ django.forms.Field.__deepcopy__ django.forms.Field.hidden_widget django.forms.FileField.bound_data -django.forms.FileInput.allow_multiple_selected django.forms.HiddenInput.__slotnames__ django.forms.InlineForeignKeyField django.forms.Input @@ -1366,7 +1364,6 @@ django.forms.renderers.DjangoDivFormRenderer django.forms.widgets.ChoiceWidget.subwidgets django.forms.widgets.ChoiceWidget.template_name django.forms.widgets.EmailInput.__slotnames__ -django.forms.widgets.FileInput.allow_multiple_selected django.forms.widgets.HiddenInput.__slotnames__ django.forms.widgets.Input.input_type django.forms.widgets.Media.__html__ diff --git a/scripts/stubtest/allowlist_todo_django50.txt b/scripts/stubtest/allowlist_todo_django50.txt index 98769d7f0..32ebe046e 100644 --- a/scripts/stubtest/allowlist_todo_django50.txt +++ b/scripts/stubtest/allowlist_todo_django50.txt @@ -18,7 +18,6 @@ django.contrib.gis.db.models.Lookup.allowed_default django.contrib.gis.db.models.Prefetch.get_current_querysets django.contrib.gis.db.models.Q.identity django.contrib.gis.db.models.When.allowed_default -django.contrib.gis.forms.ClearableFileInput.checked django.contrib.gis.geos.prototypes.io.DEFAULT_TRIM_VALUE django.contrib.gis.management django.contrib.gis.management.commands @@ -81,8 +80,6 @@ django.db.models.sql.Query.setup_joins django.db.models.sql.query.Query.build_filtered_relation_q django.db.models.sql.query.Query.join django.db.models.sql.query.Query.setup_joins -django.forms.ClearableFileInput.checked -django.forms.widgets.ClearableFileInput.checked django.template.autoreload # Django + Oracle (new errors after 5.0.5 update)