Skip to content

Commit e62c24f

Browse files
fixed mypy
1 parent 6a7fe40 commit e62c24f

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
@@ -551,7 +551,7 @@ def as_agent(
551551
| MutableMapping[str, Any]
552552
| Sequence[ToolProtocol | Callable[..., Any] | MutableMapping[str, Any]]
553553
| None = None,
554-
default_options: TAzureAIClientOptions | None = None,
554+
default_options: TAzureAIClientOptions | Mapping[str, Any] | None = None,
555555
chat_message_store_factory: Callable[[], ChatMessageStoreProtocol] | None = None,
556556
context_provider: ContextProvider | None = None,
557557
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
@@ -2881,7 +2881,7 @@ class _ChatOptionsBase(TypedDict, total=False):
28812881
if TYPE_CHECKING:
28822882

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

28862886
else:
28872887
ChatOptions = _ChatOptionsBase

0 commit comments

Comments
 (0)