From f8f15516918e6b6246da396346f118247ac5c77d Mon Sep 17 00:00:00 2001 From: Brian Helba Date: Thu, 7 Sep 2023 17:00:57 -0400 Subject: [PATCH] Remove "django.forms.Field.deconstruct" This method doesn't exist on upstream Django 4.2. --- django-stubs/forms/fields.pyi | 1 - scripts/stubtest/allowlist_todo.txt | 3 --- 2 files changed, 4 deletions(-) diff --git a/django-stubs/forms/fields.pyi b/django-stubs/forms/fields.pyi index 86f340310..0e63f14c8 100644 --- a/django-stubs/forms/fields.pyi +++ b/django-stubs/forms/fields.pyi @@ -71,7 +71,6 @@ class Field: def widget_attrs(self, widget: Widget) -> dict[str, Any]: ... def has_changed(self, initial: Any | None, data: Any | None) -> bool: ... def get_bound_field(self, form: BaseForm, field_name: str) -> BoundField: ... - def deconstruct(self) -> Any: ... class CharField(Field): max_length: int | None diff --git a/scripts/stubtest/allowlist_todo.txt b/scripts/stubtest/allowlist_todo.txt index 83abb1330..8bf8b56ac 100644 --- a/scripts/stubtest/allowlist_todo.txt +++ b/scripts/stubtest/allowlist_todo.txt @@ -593,7 +593,6 @@ django.contrib.gis.forms.ChoiceWidget django.contrib.gis.forms.DateTimeBaseInput django.contrib.gis.forms.EmailInput.__slotnames__ django.contrib.gis.forms.Field.__deepcopy__ -django.contrib.gis.forms.Field.deconstruct django.contrib.gis.forms.Field.hidden_widget django.contrib.gis.forms.FileField.bound_data django.contrib.gis.forms.FileInput.allow_multiple_selected @@ -2097,7 +2096,6 @@ django.forms.ChoiceWidget django.forms.DateTimeBaseInput django.forms.EmailInput.__slotnames__ django.forms.Field.__deepcopy__ -django.forms.Field.deconstruct django.forms.Field.hidden_widget django.forms.FileField.bound_data django.forms.FileInput.allow_multiple_selected @@ -2131,7 +2129,6 @@ django.forms.boundfield.BoundField.subwidgets django.forms.boundfield.BoundWidget.__html__ django.forms.fields.ChoiceField.__deepcopy__ django.forms.fields.Field.__deepcopy__ -django.forms.fields.Field.deconstruct django.forms.fields.Field.hidden_widget django.forms.fields.FileField.bound_data django.forms.fields.MultiValueField.__deepcopy__