You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: add ANN ruff ruleset to llama_cpp, llama_stack, mcp, meta_llama, mistral, mongodb_atlas, nvidia, ollama, openrouter, opensearch (#2991)
Adds the flake8-annotations (ANN) ruleset to enforce return type annotations,
while excluding ANN401 (Any) globally and ANN from test and example files.
Fixes all ANN violations by adding missing return type annotations to __init__,
warm_up, close, __del__, __post_init__, and other public/private methods.
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: integrations/llama_stack/src/haystack_integrations/components/generators/llama_stack/chat/chat_generator.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ def __init__(
68
68
tools_strict: bool=False,
69
69
max_retries: int|None=None,
70
70
http_client_kwargs: dict[str, Any] |None=None,
71
-
):
71
+
)->None:
72
72
"""
73
73
Creates an instance of LlamaStackChatGenerator. To use this chat generator,
74
74
you need to setup Llama Stack Server with an inference provider and have a model available.
0 commit comments