Skip to content

Commit c3e3c00

Browse files
committed
refactor: remove Python 3.9 compatibility code
- Remove TODO comments for Python 3.9 support removal - Remove MCP test skip conditions (Python 3.11 is now minimum) - Regenerate uv.lock for Python 3.11+
1 parent ac9ddde commit c3e3c00

File tree

5 files changed

+1391
-1456
lines changed

5 files changed

+1391
-1456
lines changed

stackone_ai/feedback/tool.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Feedback collection tool for StackOne."""
22

3-
# TODO: Remove when Python 3.9 support is dropped
43
from __future__ import annotations
54

65
import json

stackone_ai/toolset.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# TODO: Remove when Python 3.9 support is dropped
21
from __future__ import annotations
32

43
import asyncio

tests/test_feedback.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Tests for feedback tool."""
22

3-
# TODO: Remove when Python 3.9 support is dropped
43
from __future__ import annotations
54

65
import json

tests/test_toolset_mcp.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
from __future__ import annotations
2-
3-
import sys
41
from contextlib import asynccontextmanager
52
from unittest.mock import AsyncMock, MagicMock, patch
63

74
import pytest
85

96
from stackone_ai.toolset import StackOneToolSet, _fetch_mcp_tools, _McpToolDefinition
107

11-
# MCP module requires Python 3.10+
12-
SKIP_MCP_TESTS = sys.version_info < (3, 10)
13-
148

159
@pytest.fixture
1610
def mock_mcp_catalog(monkeypatch):
@@ -327,7 +321,6 @@ def fake_fetch(_: str, headers: dict[str, str]) -> list[_McpToolDefinition]:
327321
toolset.fetch_tools()
328322

329323

330-
@pytest.mark.skipif(SKIP_MCP_TESTS, reason="MCP module requires Python 3.10+")
331324
class TestFetchMcpToolsInternal:
332325
"""Test _fetch_mcp_tools internal implementation."""
333326

0 commit comments

Comments
 (0)