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 5c9dcae commit 26de218Copy full SHA for 26de218
src/eligibility_signposting_api/model/campaign_config.py
@@ -158,7 +158,7 @@ class IterationRule(BaseModel):
158
model_config = {"populate_by_name": True, "extra": "ignore"}
159
160
@field_validator("rule_stop", mode="before")
161
- def parse_yn_to_bool(cls, v: str | bool) -> bool: # noqa: N805
+ def parse_yn_to_bool(cls, v: str | bool) -> bool: # noqa: N805, FBT001
162
if isinstance(v, str):
163
return v.upper() == "Y"
164
return v
0 commit comments