Skip to content

Commit 8b6f662

Browse files
committed
Fix linting issues after form fields migration
1 parent 89e1907 commit 8b6f662

5 files changed

Lines changed: 2 additions & 7 deletions

File tree

lung_cancer_screening/core/form_fields.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from django import forms
22
from django.forms import widgets
3-
from django.utils.translation import gettext_lazy as _
43

5-
from lung_cancer_screening.nhsuk_forms.utils.date_formatting import format_date
64
from lung_cancer_screening.nhsuk_forms.integer_field import IntegerField
75

86
class DecimalField(forms.DecimalField):

lung_cancer_screening/nhsuk_forms/bound_choice_field.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from django import forms
22
from django.forms import widgets
3-
from django.utils.translation import gettext_lazy as _
43

4+
from lung_cancer_screening.nhsuk_forms import choice_field
55

66
class BoundChoiceField(forms.BoundField):
77
"""
@@ -11,7 +11,7 @@ class BoundChoiceField(forms.BoundField):
1111
more details.
1212
"""
1313

14-
def __init__(self, form: forms.Form, field: "ChoiceField", name: str):
14+
def __init__(self, form: forms.Form, field: "choice_field", name: str):
1515
super().__init__(form, field, name)
1616

1717
self._conditional_html = {}

lung_cancer_screening/nhsuk_forms/choice_field.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from django import forms
22
from django.forms import widgets
3-
from django.utils.translation import gettext_lazy as _
43

54
from .bound_choice_field import BoundChoiceField
65

lung_cancer_screening/nhsuk_forms/integer_field.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from django import forms
2-
from django.utils.translation import gettext_lazy as _
32

43

54
class IntegerField(forms.IntegerField):

lung_cancer_screening/nhsuk_forms/typed_choice_field.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
from django import forms
33
from django.forms import widgets
4-
from django.utils.translation import gettext_lazy as _
54

65
from .bound_choice_field import BoundChoiceField
76

0 commit comments

Comments
 (0)