Files
crewAI/tests
Devin AI 59f4c71370 fix: resolve type annotation mismatch in Task.context field
- Update context field type annotation from Optional[List[Task]] to Union[List[Task], _NotSpecified, None]
- Add ConfigDict(arbitrary_types_allowed=True) to Task model to support _NotSpecified type
- Add comprehensive tests covering the type annotation fix and sentinel behavior
- Fixes issue #3019 where context field default NOT_SPECIFIED didn't match type annotation

The fix maintains backward compatibility while making the type annotation accurate.
The NOT_SPECIFIED sentinel distinguishes between 'not passed' and 'explicitly passed None'.

Co-Authored-By: João <joao@crewai.com>
2025-06-17 09:09:40 +00:00
..
2025-03-14 03:00:30 -03:00
2023-10-29 19:51:59 -03:00