1 parent 665a6a7 commit 8da1627Copy full SHA for 8da1627
1 file changed
voucherbot/services/ai/schema.py
@@ -8,7 +8,7 @@
8
9
from __future__ import annotations
10
11
-from typing import Optional
+from typing import Any, Optional
12
from pydantic import BaseModel, field_validator, model_validator
13
14
@@ -63,7 +63,7 @@ def normalise_vendor(cls, v: object) -> Optional[str]:
63
64
@model_validator(mode="before")
65
@classmethod
66
- def strip_nulls_from_arrays(cls, data: dict) -> dict:
+ def strip_nulls_from_arrays(cls, data: dict[str, Any]) -> dict[str, Any]:
67
"""Remove None/null entries from list fields like certifications and regions.
68
The AI sometimes emits ``[null]`` instead of ``null`` or ``[]``.
69
"""
0 commit comments