Skip to content

Commit 2e09ef2

Browse files
committed
fix mypy
1 parent 9af712f commit 2e09ef2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

sdk/ai/azure-ai-agentserver-agentframework/azure/ai/agentserver/agentframework/models/agent_framework_input_converters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# ---------------------------------------------------------
44
# pylint: disable=too-many-nested-blocks,too-many-return-statements,too-many-branches
5+
# mypy: disable-error-code="no-redef"
56
from __future__ import annotations
67

78
from typing import Dict, List

sdk/ai/azure-ai-agentserver-agentframework/azure/ai/agentserver/agentframework/models/agent_framework_output_non_streaming_converter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def __init__(self, context: AgentRunContext):
3434

3535
def _ensure_response_started(self) -> None:
3636
if not self._response_id:
37-
self._response_id = self._context.response_id
37+
self._response_id = self._context.response_id # type: ignore
3838
if not self._response_created_at:
39-
self._response_created_at = int(datetime.datetime.now(datetime.timezone.utc).timestamp())
39+
self._response_created_at = int(datetime.datetime.now(datetime.timezone.utc).timestamp()) # type: ignore
4040

4141
def _build_item_content_output_text(self, text: str) -> ItemContentOutputText:
4242
return ItemContentOutputText(text=text, annotations=[])
@@ -169,7 +169,7 @@ def _append_function_result_content(self, content: FunctionResultContent, sink:
169169
result = [raw]
170170
elif isinstance(raw, list):
171171
for item in raw:
172-
result.append(self._coerce_result_text(item))
172+
result.append(self._coerce_result_text(item)) # type: ignore
173173
call_id = getattr(content, "call_id", None) or ""
174174
func_out_id = self._context.id_generator.generate_function_output_id()
175175
sink.append(

sdk/ai/azure-ai-agentserver-agentframework/azure/ai/agentserver/agentframework/models/agent_framework_output_streaming_converter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# ---------------------------------------------------------
44
# pylint: disable=attribute-defined-outside-init,protected-access
5+
# mypy: disable-error-code="call-overload,assignment"
56
from __future__ import annotations
67

78
import datetime

0 commit comments

Comments
 (0)