Skip to content

Commit 8da1627

Browse files
committed
mypy fix
1 parent 665a6a7 commit 8da1627

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

voucherbot/services/ai/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from __future__ import annotations
1010

11-
from typing import Optional
11+
from typing import Any, Optional
1212
from pydantic import BaseModel, field_validator, model_validator
1313

1414

@@ -63,7 +63,7 @@ def normalise_vendor(cls, v: object) -> Optional[str]:
6363

6464
@model_validator(mode="before")
6565
@classmethod
66-
def strip_nulls_from_arrays(cls, data: dict) -> dict:
66+
def strip_nulls_from_arrays(cls, data: dict[str, Any]) -> dict[str, Any]:
6767
"""Remove None/null entries from list fields like certifications and regions.
6868
The AI sometimes emits ``[null]`` instead of ``null`` or ``[]``.
6969
"""

0 commit comments

Comments
 (0)