@@ -17,7 +17,6 @@ class FinancialAidApplicationForm(ApplicationForm):
1717 type = Application .Type .FINANCIAL_AID
1818
1919 travel_requested = forms .BooleanField (
20- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/262.
2120 label = _ ("Do you need assistance with travel?" ),
2221 required = False ,
2322 )
@@ -32,13 +31,9 @@ class Meta:
3231 "lodging_requested" ,
3332 )
3433 labels = {
35- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/262.
3634 "background" : _ ("Tell us a little bit more about yourself" ),
37- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/262.
3835 "lodging_requested" : _ ("Do you need assistance with lodging?" ),
39- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/262.
4036 "reason_to_attend" : _ ("Why are you interested in attending PyGotham?" ),
41- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/262.
4237 "travel_amount" : _ ("What is the estimated cost (USD)?" ),
4338 }
4439 widgets = {
@@ -51,20 +46,14 @@ def clean(self) -> Dict[str, Any]:
5146 travel_amount = cleaned_data .get ("travel_amount" ) or 0
5247 if travel_amount < 0 :
5348 raise forms .ValidationError (
54- {
55- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/262.
56- "travel_amount" : _ (
57- "Your estimated travel costs cannot be negative."
58- )
59- }
49+ {"travel_amount" : _ ("Your estimated travel costs cannot be negative." )}
6050 )
6151
6252 travel_requested = cleaned_data .get ("travel_requested" )
6353 if travel_requested :
6454 if not travel_amount :
6555 raise forms .ValidationError (
6656 {
67- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/262.
6857 "travel_amount" : _ (
6958 "Your estimated travel costs must be greater than $0.00."
7059 )
@@ -73,7 +62,6 @@ def clean(self) -> Dict[str, Any]:
7362 elif travel_amount :
7463 raise forms .ValidationError (
7564 {
76- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/262.
7765 "travel_requested" : _ (
7866 "You must request travel assistance before providing an estimated cost."
7967 )
@@ -83,7 +71,6 @@ def clean(self) -> Dict[str, Any]:
8371 return cleaned_data
8472
8573 def clean_lodging_requested (self ) -> bool :
86- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/261.
8774 return bool (self .cleaned_data .get ("lodging_requested" ))
8875
8976
@@ -94,9 +81,7 @@ class Meta:
9481 model = Application
9582 fields = ("background" , "reason_to_attend" )
9683 labels = {
97- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/262.
9884 "background" : _ ("Tell us a little bit about yourself" ),
99- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/262.
10085 "reason_to_attend" : _ ("Why are you interested in attending PyGotham?" ),
10186 }
10287
0 commit comments