crewAI
crewAI copied to clipboard
fix: improve type annotations for config field in Crew class
- Update config field type from Json | dict[str, Any] to dict[str, Any]
- Fix check_config_type validator to use str instead of Json type for isinstance check
- Update validator input type from Json to str (Json is essentially a string in Pydantic)
- Remove TODO comment and type: ignore as typing is now accurate
- The validator always returns dict[str, Any] regardless of input type
Resolves TODO: Improve typing in crew.py
This PR is stale because it has been open for 45 days with no activity.