mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-02 21:58:11 +00:00
fix: add type annotation to satisfy mypy no-any-return
Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -783,7 +783,7 @@ def _inline_top_level_ref(schema: dict[str, Any]) -> dict[str, Any]:
|
||||
def_name = ref[len("#/$defs/") :]
|
||||
defs = schema.get("$defs", {})
|
||||
if def_name in defs:
|
||||
resolved = defs[def_name]
|
||||
resolved: dict[str, Any] = defs[def_name]
|
||||
# Attach $defs so effective_root can resolve inner $refs.
|
||||
resolved.setdefault("$defs", defs)
|
||||
return resolved
|
||||
|
||||
Reference in New Issue
Block a user