Removing unused imports#459
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR is a small cleanup that removes unused imports across several libraries (hosting core, copilotstudio client, and MSAL authentication), reducing lint noise and keeping modules tidy.
Changes:
- Removed unused imports (typing helpers, models, and other symbols) from multiple modules.
- Simplified some import lines (e.g., dropping unused
ABC,List,Dict,Callable,jwt, etc.).
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/telemetry/core/_agents_telemetry.py | Removes unused TurnContextProtocol import from telemetry core. |
| libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/storage/transcript_store.py | Removes unused ABC from abc imports. |
| libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/storage/transcript_memory_store.py | Removes unused List typing import. |
| libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/storage/store_item.py | Removes unused Protocol / runtime_checkable imports. |
| libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/connector/conversations_base.py | Removes unused AttachmentInfo import. |
| libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/client/conversation_id_factory.py | Removes unused Type import. |
| libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py | Removes unused asyncio.sleep and UserTokenClientBase imports. |
| libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/oauth/telemetry/spans.py | Removes unused AttributeMap import. |
| libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/app/oauth/_handlers/_user_authorization.py | Removes unused jwt import. |
| libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/activity_handler.py | Removes unused Awaitable import. |
| libraries/microsoft-agents-copilotstudio-client/microsoft_agents/copilotstudio/client/copilot_client.py | Removes unused Callable import. |
| libraries/microsoft-agents-authentication-msal/microsoft_agents/authentication/msal/msal_connection_manager.py | Removes unused Dict import. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
rodrigobr-msft
marked this pull request as ready for review
July 10, 2026 16:56
kylerohn-msft
approved these changes
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.