Skip to content

Commit f2d8e4d

Browse files
fixed mypy
1 parent 585e673 commit f2d8e4d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

python/packages/azure-ai/agent_framework_azure_ai/_chat_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ def as_agent(
12651265
| MutableMapping[str, Any]
12661266
| Sequence[ToolProtocol | Callable[..., Any] | MutableMapping[str, Any]]
12671267
| None = None,
1268-
default_options: TAzureAIAgentOptions | None = None,
1268+
default_options: TAzureAIAgentOptions | Mapping[str, Any] | None = None,
12691269
chat_message_store_factory: Callable[[], ChatMessageStoreProtocol] | None = None,
12701270
context_provider: ContextProvider | None = None,
12711271
middleware: Sequence[Middleware] | None = None,

python/packages/azure-ai/agent_framework_azure_ai/_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ def as_agent(
548548
| MutableMapping[str, Any]
549549
| Sequence[ToolProtocol | Callable[..., Any] | MutableMapping[str, Any]]
550550
| None = None,
551-
default_options: TAzureAIClientOptions | None = None,
551+
default_options: TAzureAIClientOptions | Mapping[str, Any] | None = None,
552552
chat_message_store_factory: Callable[[], ChatMessageStoreProtocol] | None = None,
553553
context_provider: ContextProvider | None = None,
554554
middleware: Sequence[Middleware] | None = None,

python/packages/core/agent_framework/_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2882,7 +2882,7 @@ class _ChatOptionsBase(TypedDict, total=False):
28822882
if TYPE_CHECKING:
28832883

28842884
class ChatOptions(_ChatOptionsBase, Generic[TResponseModel], total=False):
2885-
response_format: type[TResponseModel] | Mapping[str, Any] | None
2885+
response_format: type[TResponseModel] | Mapping[str, Any] | None # type: ignore[misc]
28862886

28872887
else:
28882888
ChatOptions = _ChatOptionsBase

0 commit comments

Comments
 (0)