Răsfoiți Sursa

Remove invalid (for Python <3.9) type annotation

thatmattlove 4 ani în urmă
părinte
comite
6a15c2ae86
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      netbox/utilities/forms/fields.py

+ 1 - 1
netbox/utilities/forms/fields.py

@@ -478,7 +478,7 @@ class DynamicModelMultipleChoiceField(DynamicModelChoiceMixin, forms.ModelMultip
     filter = django_filters.ModelMultipleChoiceFilter
     filter = django_filters.ModelMultipleChoiceFilter
     widget = widgets.APISelectMultiple
     widget = widgets.APISelectMultiple
 
 
-    def clean(self, value: list[str]):
+    def clean(self, value):
         """
         """
         When null option is enabled and "None" is sent as part of a form to be submitted, it is sent as the
         When null option is enabled and "None" is sent as part of a form to be submitted, it is sent as the
         string 'null'.  This will check for that condition and gracefully handle the conversion to a NoneType.
         string 'null'.  This will check for that condition and gracefully handle the conversion to a NoneType.