Skip to content

Conversation

devenchawla009
Copy link

  • 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

- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant