We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c09fb58 commit 7e801c5Copy full SHA for 7e801c5
src/eligibility_signposting_api/model/rules.py
@@ -102,7 +102,8 @@ class IterationRule(BaseModel):
102
rule_stop: bool = Field(default=False, alias="RuleStop")
103
104
@field_validator("rule_stop", mode="before")
105
- def parse_yn_to_bool(cls, v: str | bool) -> bool: # noqa: N805
+ @staticmethod
106
+ def parse_yn_to_bool(v: str | bool) -> bool:
107
if isinstance(v, str):
108
return v.upper() == "Y"
109
return bool(v)
0 commit comments