@@ -17,9 +17,7 @@ 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.
21- label = _ ("Do you need assistance with travel?" ),
22- required = False ,
20+ label = _ ("Do you need assistance with travel?" ), required = False ,
2321 )
2422
2523 class Meta :
@@ -32,13 +30,9 @@ class Meta:
3230 "lodging_requested" ,
3331 )
3432 labels = {
35- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/262.
3633 "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.
3834 "lodging_requested" : _ ("Do you need assistance with lodging?" ),
39- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/262.
4035 "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.
4236 "travel_amount" : _ ("What is the estimated cost (USD)?" ),
4337 }
4438 widgets = {
@@ -51,20 +45,14 @@ def clean(self) -> Dict[str, Any]:
5145 travel_amount = cleaned_data .get ("travel_amount" ) or 0
5246 if travel_amount < 0 :
5347 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- }
48+ {"travel_amount" : _ ("Your estimated travel costs cannot be negative." )}
6049 )
6150
6251 travel_requested = cleaned_data .get ("travel_requested" )
6352 if travel_requested :
6453 if not travel_amount :
6554 raise forms .ValidationError (
6655 {
67- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/262.
6856 "travel_amount" : _ (
6957 "Your estimated travel costs must be greater than $0.00."
7058 )
@@ -73,7 +61,6 @@ def clean(self) -> Dict[str, Any]:
7361 elif travel_amount :
7462 raise forms .ValidationError (
7563 {
76- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/262.
7764 "travel_requested" : _ (
7865 "You must request travel assistance before providing an estimated cost."
7966 )
@@ -83,7 +70,6 @@ def clean(self) -> Dict[str, Any]:
8370 return cleaned_data
8471
8572 def clean_lodging_requested (self ) -> bool :
86- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/261.
8773 return bool (self .cleaned_data .get ("lodging_requested" ))
8874
8975
@@ -94,9 +80,7 @@ class Meta:
9480 model = Application
9581 fields = ("background" , "reason_to_attend" )
9682 labels = {
97- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/262.
9883 "background" : _ ("Tell us a little bit about yourself" ),
99- # pyre-ignore[16]: This is fixed by https://github.com/facebook/pyre-check/pull/262.
10084 "reason_to_attend" : _ ("Why are you interested in attending PyGotham?" ),
10185 }
10286
0 commit comments