Skip to content

Commit 7e801c5

Browse files
lint fix
1 parent c09fb58 commit 7e801c5

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
@@ -102,7 +102,8 @@ class IterationRule(BaseModel):
102102
rule_stop: bool = Field(default=False, alias="RuleStop")
103103

104104
@field_validator("rule_stop", mode="before")
105-
def parse_yn_to_bool(cls, v: str | bool) -> bool: # noqa: N805
105+
@staticmethod
106+
def parse_yn_to_bool(v: str | bool) -> bool:
106107
if isinstance(v, str):
107108
return v.upper() == "Y"
108109
return bool(v)

0 commit comments

Comments
 (0)