Commit 07ade1a
Update Python CLI template imports to use underscore notation (#417)
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:**
```python
from microsoft.teams.api import MessageActivity
from microsoft.teams.apps import App
from microsoft.teams.devtools import DevToolsPlugin
```
**After:**
```python
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)
<!-- START COPILOT CODING AGENT SUFFIX -->
<details>
<summary>Original prompt</summary>
> 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?
</details>
<!-- START COPILOT CODING AGENT TIPS -->
---
💡 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](https://gh.io/copilot-coding-agent-tips) in the docs.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: heyitsaamir <48929123+heyitsaamir@users.noreply.github.com>1 parent 3757371 commit 07ade1a
3 files changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments