Skip to content

fix: remove unused turtle import from MCP server#538

Merged
koreyspace merged 1 commit intomicrosoft:mainfrom
mitre88:fix/remove-unused-turtle-import
May 7, 2026
Merged

fix: remove unused turtle import from MCP server#538
koreyspace merged 1 commit intomicrosoft:mainfrom
mitre88:fix/remove-unused-turtle-import

Conversation

@mitre88
Copy link
Copy Markdown

@mitre88 mitre88 commented May 1, 2026

Summary

Removes the unused from turtle import st import in 11-agentic-protocols/code_samples/mcp-agents/server/server.py.

This import is clearly accidental (likely IDE autocomplete). The st variable is never used anywhere in the file, and the turtle module opens a graphics window on import, which would be undesirable for a server process.

Testing

  • Verified st is not referenced anywhere in the file
  • No behavioral changes — only removes dead code

Copilot AI review requested due to automatic review settings May 1, 2026 02:29
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

👋 Thanks for contributing @mitre88! We will review the pull request and get back to you soon.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes an accidental turtle import from the MCP server implementation to avoid unnecessary side effects and keep the module’s imports clean.

Changes:

  • Removed unused from turtle import st import from the server module.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 12 to 14
import re
from turtle import st

from typing import Optional
Copy link

Copilot AI May 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import re appears unused in this module (no re.* usage found). Since this PR is already cleaning up accidental imports, consider removing re as well and keeping the stdlib imports contiguous (no extra blank line before from typing import Optional).

Copilot uses AI. Check for mistakes.
@koreyspace koreyspace merged commit 7658ad6 into microsoft:main May 7, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants