Skip to content

Commit 87f0870

Browse files
code cleanup
1 parent 7e801c5 commit 87f0870

File tree

1 file changed

+2
-1
lines changed
  • src/eligibility_signposting_api/model

1 file changed

+2
-1
lines changed

src/eligibility_signposting_api/model/rules.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
StartDate = NewType("StartDate", date)
3030
EndDate = NewType("EndDate", date)
3131
CohortLabel = NewType("CohortLabel", str)
32+
RuleStop = NewType("RuleStop", bool)
3233

3334

3435
class RuleType(StrEnum):
@@ -99,7 +100,7 @@ class IterationRule(BaseModel):
99100
operator: RuleOperator = Field(..., alias="Operator")
100101
comparator: RuleComparator = Field(..., alias="Comparator")
101102
attribute_target: RuleAttributeTarget | None = Field(None, alias="AttributeTarget")
102-
rule_stop: bool = Field(default=False, alias="RuleStop")
103+
rule_stop: RuleStop = Field(default=False, alias="RuleStop")
103104

104105
@field_validator("rule_stop", mode="before")
105106
@staticmethod

0 commit comments

Comments
 (0)