test: litellm 1.109.0 ReadOnly TypedDict notices fail the tag wheel tests
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
- 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
- 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 intel/dokimi
-
Độ 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 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
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 67/100
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 73/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
UKGovernmentBEIS/inspect_ai#6512 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/c++ area/core kind/bug-report
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tensorflow/quantum#1140 ·
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 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Kav-K/GPTDiscord#501 ·
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 78/100
UKGovernmentBEIS/inspect_evals#2863 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày