Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

pydantic-ai-slim is declared `>=0.0.14` with no upper bound; the floor lacks the API darnit uses

Đang mở Phù hợp với người mới
#489 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@catfish-1234 đang làm issue này rồi.

Từ ngày 14/10/2026.

  • #602 của @catfish-1234 — đang mở

Đá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
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

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ả

good first issue infrastructure module-core

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=...) and RunResult.output: llm_step.py#L97-L99, #L139
  • uv.lock resolves 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của darnitdevorg/darnit

Tất cả issue của darnitdevorg/darnit

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.