Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 5, 2025

Python packages with dots in their names must be imported using underscores. The CLI templates were using the incorrect dot notation (microsoft.teams.*) instead of the required underscore notation (microsoft_teams.*).

Changes

Updated import statements in all three Python CLI templates:

Before:

from microsoft.teams.api import MessageActivity
from microsoft.teams.apps import App
from microsoft.teams.devtools import DevToolsPlugin

After:

from microsoft_teams.api import MessageActivity
from microsoft_teams.apps import App
from microsoft_teams.devtools import DevToolsPlugin

Files Modified

  • packages/cli/templates/python/ai/src/main.py - Updated 4 imports (ai, apps, devtools, openai)
  • packages/cli/templates/python/echo/src/main.py - Updated 3 imports (api, apps, devtools)
  • packages/cli/templates/python/graph/src/main.py - Updated 2 imports (api, apps)
Original prompt

For python cli templates, all imports must change from microsoft.teams.* to microsoft_teams.*. So for eg. microsoft.teams.apps changes to microsoft_teams.apps. Can you make those changes please?


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…t_teams.*

Co-authored-by: heyitsaamir <48929123+heyitsaamir@users.noreply.github.com>
Copilot AI changed the title [WIP] Update imports from microsoft.teams to microsoft_teams Update Python CLI template imports to use underscore notation Dec 5, 2025
Copilot AI requested a review from heyitsaamir December 5, 2025 02:54
@heyitsaamir heyitsaamir marked this pull request as ready for review December 5, 2025 02:54
@heyitsaamir heyitsaamir requested a review from lilyydu December 5, 2025 19:52
@heyitsaamir heyitsaamir merged commit 07ade1a into main Dec 9, 2025
9 checks passed
@heyitsaamir heyitsaamir deleted the copilot/update-python-cli-imports branch December 9, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants