Skip to content

Commit aa7f568

Browse files
committed
fix: add eval-type-backport for Python 3.9 Pydantic compatibility
- Add eval-type-backport dependency for Python <3.10 to handle union types - Fix mypy exclusion syntax for server.py when MCP is not available
1 parent 4254aaf commit aa7f568

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
args: check .
2727

2828
- name: Run Mypy
29-
run: uv run mypy stackone_ai
29+
run: uv run mypy stackone_ai --exclude stackone_ai/server.py

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ dependencies = [
2626
"bm25s>=0.2.2",
2727
"numpy>=1.24.0",
2828
"typing-extensions>=4.0.0",
29+
"eval-type-backport; python_version<'3.10'",
2930
]
3031

3132
[project.scripts]

0 commit comments

Comments
 (0)