test: litellm 1.109.0 ReadOnly TypedDict notices fail the tag wheel tests

Đang mở Phù hợp với người mới
#609 0 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

@vchamarthi đang làm issue này rồi.

Từ ngày 11/11/2026.

  • #610 của @vchamarthi — đ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
78/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
testing-qa

Hướng nghiên cứu

Bắt đầu với ci/hooks.py và bộ lọc cảnh báo trong dokimi/pyproject.toml; so sánh bộ lọc với các thông báo ReadOnly TypedDict mới từ litellm 1.109.0. Tái hiện bằng các bài kiểm tra wheel của tag, đặc biệt là ba tệp kiểm tra bị lỗi được liệt kê trong issue. Công việc hoàn tất khi các bài kiểm tra đó chạy đạt với cảnh báo được xử lý như lỗi và quy tắc bỏ qua vẫn chỉ giới hạn ở các cảnh báo pydantic trong mô-đun đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What fails

The Intel CI run for the v0.2.0 tag fails in all four "Test Linux Wheels" jobs (Python 3.11 to 3.14): 25 tests fail, 18263 pass. The same commit passed on main.

Failing files: tests/test_llm_delegates.py, tests/test_llm_retry_credentials.py, tests/test_openai_compatible_route.py.

Cause

A tag run installs the latest PyPI releases instead of requirements.lock.txt (ci/hooks.py). It got litellm 1.109.0 (released 2026-11-11) and pydantic 2.14.3. The lock has litellm 1.106.0.

litellm 1.109.0 marks items ReadOnly on more TypedDicts (ChatCompletionThinkingBlock, _DeviceCode). For each such class, pydantic warns:

UserWarning: Item 'index' on TypedDict class 'ChatCompletionThinkingBlock' is using the `ReadOnly` qualifier. Pydantic will not protect items from any mutation on dictionary instances.

The suite runs with filterwarnings = ["error"], and the one ignore in dokimi/pyproject.toml names only ChatCompletionReasoningItem. So the new classes turn into test failures, either as the warning itself or as AttributeError: __pydantic_core_schema__ when it is raised inside a model rebuild.

User impact

None found. A clean pip install dokimi==0.2.0 resolves the same litellm and pydantic. The CLI, backends, text completion, an empty reply, chat with and without tools, and routing a custom model name to an OpenAI-compatible endpoint all work, with default warnings and with -W error. litellm itself ignores this notice process-wide (litellm/_process_defaults.py).

Fix

Widen the ignore to pydantic's ReadOnly notice for any TypedDict class, still limited to that module and category.

Ngôn ngữ chính
Python
Star
11
Fork
9
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
442

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 intel/dokimi

Tất cả issue của intel/dokimi

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.