mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-12 12:06:04 +00:00
refactor: narrow mypy exclusions for meta_reference
Narrowed mypy exclusions from entire meta_reference/ directory to only specific files that still have type errors. The responses/ subdirectory (6 files) now passes full mypy type checking. Fixed types.py by adding type annotations and strategic type ignores for mypy's confusion between similar discriminated unions (OpenAIResponseInputTool vs OpenAIResponseTool). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
6fb7b9521f
commit
6530a7872a
2 changed files with 19 additions and 7 deletions
|
|
@ -284,7 +284,12 @@ exclude = [
|
|||
"^src/llama_stack/models/llama/llama3/interface\\.py$",
|
||||
"^src/llama_stack/models/llama/llama3/tokenizer\\.py$",
|
||||
"^src/llama_stack/models/llama/llama3/tool_utils\\.py$",
|
||||
"^src/llama_stack/providers/inline/agents/meta_reference/",
|
||||
"^src/llama_stack/providers/inline/agents/meta_reference/agents\\.py$",
|
||||
"^src/llama_stack/providers/inline/agents/meta_reference/agent_instance\\.py$",
|
||||
"^src/llama_stack/providers/inline/agents/meta_reference/config\\.py$",
|
||||
"^src/llama_stack/providers/inline/agents/meta_reference/persistence\\.py$",
|
||||
"^src/llama_stack/providers/inline/agents/meta_reference/safety\\.py$",
|
||||
"^src/llama_stack/providers/inline/agents/meta_reference/__init__\\.py$",
|
||||
"^src/llama_stack/providers/inline/datasetio/localfs/",
|
||||
"^src/llama_stack/providers/inline/eval/meta_reference/eval\\.py$",
|
||||
"^src/llama_stack/providers/inline/inference/meta_reference/inference\\.py$",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue