crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

fix: improve type annotations for config field in Crew class

Open devenchawla009 opened this issue 1 year ago • 1 comments

  • 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

devenchawla009 avatar Sep 21 '25 09:09 devenchawla009

This PR is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar Nov 05 '25 12:11 github-actions[bot]