From a0da7ff0326b96fc2e6f92c755ff696ccdb12d19 Mon Sep 17 00:00:00 2001 From: Rodrigo Brandao Date: Fri, 10 Jul 2026 09:40:56 -0700 Subject: [PATCH] Removing unused imports --- .../authentication/msal/msal_connection_manager.py | 2 +- .../microsoft_agents/copilotstudio/client/copilot_client.py | 2 +- .../microsoft_agents/hosting/core/activity_handler.py | 1 - .../hosting/core/app/oauth/_handlers/_user_authorization.py | 1 - .../microsoft_agents/hosting/core/app/oauth/telemetry/spans.py | 1 - .../microsoft_agents/hosting/core/channel_service_adapter.py | 2 -- .../hosting/core/client/conversation_id_factory.py | 1 - .../hosting/core/connector/conversations_base.py | 1 - .../microsoft_agents/hosting/core/storage/store_item.py | 1 - .../hosting/core/storage/transcript_memory_store.py | 1 - .../microsoft_agents/hosting/core/storage/transcript_store.py | 2 +- .../hosting/core/telemetry/core/_agents_telemetry.py | 2 -- 12 files changed, 3 insertions(+), 14 deletions(-) diff --git a/libraries/microsoft-agents-authentication-msal/microsoft_agents/authentication/msal/msal_connection_manager.py b/libraries/microsoft-agents-authentication-msal/microsoft_agents/authentication/msal/msal_connection_manager.py index 7ee323918..2cb943d89 100644 --- a/libraries/microsoft-agents-authentication-msal/microsoft_agents/authentication/msal/msal_connection_manager.py +++ b/libraries/microsoft-agents-authentication-msal/microsoft_agents/authentication/msal/msal_connection_manager.py @@ -2,7 +2,7 @@ # Licensed under the MIT License. import re -from typing import Dict, Optional +from typing import Optional from microsoft_agents.hosting.core import ( AgentAuthConfiguration, AccessTokenProviderBase, diff --git a/libraries/microsoft-agents-copilotstudio-client/microsoft_agents/copilotstudio/client/copilot_client.py b/libraries/microsoft-agents-copilotstudio-client/microsoft_agents/copilotstudio/client/copilot_client.py index 967b00610..f358fdb8c 100644 --- a/libraries/microsoft-agents-copilotstudio-client/microsoft_agents/copilotstudio/client/copilot_client.py +++ b/libraries/microsoft-agents-copilotstudio-client/microsoft_agents/copilotstudio/client/copilot_client.py @@ -3,7 +3,7 @@ import aiohttp import logging -from typing import AsyncIterable, Callable, Optional +from typing import AsyncIterable, Optional from microsoft_agents.activity import Activity, ActivityTypes, ConversationAccount diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/activity_handler.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/activity_handler.py index 102ce2729..108272204 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/activity_handler.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/activity_handler.py @@ -3,7 +3,6 @@ from __future__ import annotations from http import HTTPStatus -from typing import Awaitable from pydantic import BaseModel from microsoft_agents.activity import TurnContextProtocol diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/oauth/_handlers/_user_authorization.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/oauth/_handlers/_user_authorization.py index fb8e9b704..37ad2f59d 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/oauth/_handlers/_user_authorization.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/oauth/_handlers/_user_authorization.py @@ -5,7 +5,6 @@ from __future__ import annotations import logging -import jwt from typing import Optional from microsoft_agents.activity import ( diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/oauth/telemetry/spans.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/oauth/telemetry/spans.py index b7f3df5e4..400afe2b6 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/oauth/telemetry/spans.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/oauth/telemetry/spans.py @@ -7,7 +7,6 @@ from microsoft_agents.hosting.core.telemetry import ( attributes, - AttributeMap, SimpleSpanWrapper, format_scopes, ) diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py index 2be89cf01..752ae078c 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py @@ -3,7 +3,6 @@ from __future__ import annotations -from asyncio import sleep from abc import ABC from copy import Error from http import HTTPStatus @@ -27,7 +26,6 @@ ) from microsoft_agents.hosting.core.connector import ( ConnectorClientBase, - UserTokenClientBase, ConnectorClient, UserTokenClient, ) diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/client/conversation_id_factory.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/client/conversation_id_factory.py index 457f96c95..455e6cecd 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/client/conversation_id_factory.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/client/conversation_id_factory.py @@ -3,7 +3,6 @@ from uuid import uuid4 from functools import partial -from typing import Type from microsoft_agents.activity import AgentsModel from microsoft_agents.hosting.core.storage import Storage, StoreItem diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/connector/conversations_base.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/connector/conversations_base.py index 1c71ca985..2b74a1fd6 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/connector/conversations_base.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/connector/conversations_base.py @@ -5,7 +5,6 @@ from typing import Protocol, Optional from microsoft_agents.activity import ( - AttachmentInfo, ConversationResourceResponse, ConversationsResult, ConversationParameters, diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/storage/store_item.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/storage/store_item.py index 7a3349051..451b72295 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/storage/store_item.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/storage/store_item.py @@ -2,7 +2,6 @@ # Licensed under the MIT License. from abc import ABC -from typing import Protocol, runtime_checkable from ._type_aliases import JSON diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/storage/transcript_memory_store.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/storage/transcript_memory_store.py index 6ae74684f..cd74ab310 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/storage/transcript_memory_store.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/storage/transcript_memory_store.py @@ -3,7 +3,6 @@ from threading import Lock from datetime import datetime, timezone -from typing import List from .transcript_logger import TranscriptLogger, PagedResult from .transcript_info import TranscriptInfo from microsoft_agents.activity import Activity diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/storage/transcript_store.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/storage/transcript_store.py index 4170863be..e3d5fa49b 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/storage/transcript_store.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/storage/transcript_store.py @@ -1,7 +1,7 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. -from abc import ABC, abstractmethod +from abc import abstractmethod from datetime import datetime, timezone from microsoft_agents.activity import Activity from .transcript_info import TranscriptInfo diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/telemetry/core/_agents_telemetry.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/telemetry/core/_agents_telemetry.py index a7cb70848..94030a472 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/telemetry/core/_agents_telemetry.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/telemetry/core/_agents_telemetry.py @@ -11,8 +11,6 @@ from opentelemetry import metrics, trace from opentelemetry.trace import Tracer, Span -from microsoft_agents.activity import TurnContextProtocol - from .resource import SERVICE_NAME, SERVICE_VERSION from .type_defs import SpanCallback