haystack/releasenotes/notes/fix-state-validate-schema-5ae41ce9c82de61a.yaml
Sebastian Husch Lee 25c8d7ef9a
fix: In State schema validation use != instead of is not for checking the type of messages (#9454)
* Use != instead of is not

* Add reno

* Use more == instead of is

* Fix mypy
2025-05-30 10:07:37 +02:00

6 lines
250 B
YAML

---
fixes:
- |
Fix type comparison in schema validation by replacing `is not` with `!=` when checking the type `List[ChatMessage]`.
This prevents false mismatches due to Python's `is` operator comparing object identity instead of equality.