Skip to content

Commit 59e1b78

Browse files
committed
Reformat with black
1 parent c7c6762 commit 59e1b78

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

policyengine_uk/variables/gov/dwp/tax_free_childcare/conditions/childcare_age_child_condition.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ class child_age_eligible(Variable):
55
value_type = bool
66
entity = Person
77
label = "Child age eligibility requirements"
8-
documentation = (
9-
"Whether this person meets the age and disability requirements for eligibility"
10-
)
8+
documentation = "Whether this person meets the age and disability requirements for eligibility"
119
definition_period = YEAR
1210

1311
def formula(person, period, parameters):
@@ -35,5 +33,7 @@ def formula(person, period, parameters):
3533
age_under_disability_limit = (age < disability_age_limit).astype(bool)
3634

3735
# Combine conditions
38-
combined_condition = (age_under_disability_limit & is_disabled).astype(bool)
36+
combined_condition = (age_under_disability_limit & is_disabled).astype(
37+
bool
38+
)
3939
return (basic_age_condition | combined_condition).astype(bool)

policyengine_uk/variables/gov/dwp/tax_free_childcare/conditions/childcare_work_condition.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ class childcare_work_condition(Variable):
55
value_type = bool
66
entity = Person
77
label = "Work conditions for tax-free childcare"
8-
documentation = (
9-
"Whether the person/couple meets work requirements for tax-free childcare"
10-
)
8+
documentation = "Whether the person/couple meets work requirements for tax-free childcare"
119
definition_period = YEAR
1210

1311
def formula(person, period, parameters):
@@ -31,7 +29,9 @@ def formula(person, period, parameters):
3129
| (add(person, period, severe_disability_benefits) > 0)
3230
).astype(bool)
3331

34-
has_incapacity = (person("incapacity_benefit", period) > 0).astype(bool)
32+
has_incapacity = (person("incapacity_benefit", period) > 0).astype(
33+
bool
34+
)
3535
has_condition = (is_disabled | has_incapacity).astype(bool)
3636

3737
# Build conditions
@@ -49,5 +49,7 @@ def formula(person, period, parameters):
4949
).astype(bool)
5050

5151
return (
52-
single_working | couple_both_working | couple_one_working_one_disabled
52+
single_working
53+
| couple_both_working
54+
| couple_one_working_one_disabled
5355
).astype(bool)

0 commit comments

Comments
 (0)