pydantic-ai-slim is declared `>=0.0.14` with no upper bound; the floor lacks the API darnit uses
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 70/100
Hướng nghiên cứu
Bắt đầu với khai báo dependency tại packages/darnit/pyproject.toml#L41 và so sánh nó với cách sử dụng output_type và RunResult.output trong packages/darnit/src/darnit/core/llm_step.py; kiểm tra uv.lock và xác định CI đang dùng phiên bản nào. Hoàn thành khi phạm vi phiên bản được khai báo loại trừ các phiên bản thiếu API bắt buộc và các phiên bản major trong tương lai, đồng thời tệp lock nhất quán với phạm vi đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
darnit-core declares pydantic-ai-slim[anthropic]>=0.0.14. The code needs a much newer version, and nothing stops a future major from being resolved.
Impact
pydantic-ai-slim is a required runtime dependency (RFC-0001 Stage 1 / feature 025) on the LLM path that produces suggestive results. A resolver that honors the floor, or a downstream environment that already pins an older version, gets a darnit that fails at the first LLM consultation. Without an upper bound, the next major installs automatically into fresh pip/pipx/uvx environments.
Evidence
- Declaration: packages/darnit/pyproject.toml#L41
- Usage requires
Agent(output_type=...)andRunResult.output: llm_step.py#L97-L99, #L139 uv.lockresolves 2.24.0. PyPI latest as of 2026-09-25 is 2.51.0.- Major history from PyPI: 1.0.0 on 2025-09-05, 2.0.0 on 2026-06-23. The project releases several minors per week.
Reproduction
Check whether each wheel's pydantic_ai/agent* modules mention output_type:
for v in 0.0.14 0.1.0; do
curl -s https://pypi.org/pypi/pydantic-ai-slim/$v/json | python3 -c \
"import json,sys;print([u['url'] for u in json.load(sys.stdin)['urls'] if u['filename'].endswith('.whl')][0])" \
| xargs curl -sL -o p$v.whl
echo "$v: $(unzip -p p$v.whl 'pydantic_ai/agent*' | grep -c output_type)"
done
Actual: 0.0.14: 0, 0.1.0: 58. The declared floor predates the output_type API. Also, uv run --no-project --with "pydantic-ai-slim[anthropic]==0.0.14" python -c "import pydantic_ai" fails with ModuleNotFoundError: No module named '_griffe' against current transitive dependencies, so the floor is not installable as-is either.
Suggested direction
Pin to the tested major, for example pydantic-ai-slim[anthropic]>=2.24,<3. Raise the floor to the lowest version CI actually exercises (optionally add a --resolution lowest-direct job). Bump the cap deliberately when 3.x ships. This follows the reasoning of #204, which bounded mcp, cryptography, and urllib3 but predates this dependency.
- Ngôn ngữ chính
- Python
- Star
- 22
- Fork
- 27
- Merge trung bình
- 1 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 39
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của darnitdevorg/darnit
-
`darnit validate` crashes on openssf-baseline.toml summarising levelsCó thể đã có người làm @i-am-paradox đã nhận 1 ngày trước. Đang mởneeds triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
darnitdevorg/darnit#589 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
darnitdevorg/darnit#587 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
darnitdevorg/darnit#585 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
quality
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
darnitdevorg/darnit#523 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
darnitdevorg/darnit#516 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của darnitdevorg/darnit
Issue tương tự
-
`burr` fails to start when the Python path has a space in itCó thể đã có người làm @enekoreto đã nhận hôm nay. Đang mởstatus/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 5 ngày
-
gemini 出现了新的域名需要加入Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 72/100
debpalash/VoiceStudio#2903 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
dagster-io/community-integrations#367 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
aws-samples/sample-per-model-bedrock#243 ·
Maintainer thường phản hồi trong vòng 1 ngày