python / python/mypy_extensions
`test_py36_class_syntax_usage` fails on py 3.14.0a6
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 155
- Fork
- 39
- Merge trung bình
- 7 giờ 36 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
=================================== FAILURES ===================================
_________________ TypedDictTests.test_py36_class_syntax_usage __________________
self = <testextensions.TypedDictTests testMethod=test_py36_class_syntax_usage>
def test_py36_class_syntax_usage(self):
self.assertEqual(LabelPoint2D.__name__, 'LabelPoint2D') # noqa
self.assertEqual(LabelPoint2D.__module__, __name__) # noqa
> self.assertEqual(LabelPoint2D.__annotations__, {'x': int, 'y': int, 'label': str}) # noqa
E AssertionError: {'label': <class 'str'>} != {'x': <class 'int'>, 'y': <class 'int'>, 'label': <class 'str'>}
E - {'label': <class 'str'>}
E + {'label': <class 'str'>, 'x': <class 'int'>, 'y': <class 'int'>}
tests/testextensions.py:105: AssertionError
=========================== short test summary info ============================
FAILED tests/testextensions.py::TypedDictTests::test_py36_class_syntax_usage - AssertionError: {'label': <class 'str'>} != {'x': <class 'int'>, 'y': <clas...
========================= 1 failed, 11 passed in 0.08s =========================
Found while building both mypy-extensions 1.0.0 and 1.1.0 on NixOS.
Building against python 3.14.0a6. Python 3.14 is expected to release 2025-10-07, so there is still time to fix this.
I understand python 3.14 is currently an alpha, but it imo it makes sense to report these things as early as they are found.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lỗi trong tests/testextensions.py với Python 3.14.0a6, tập trung vào TypedDictTests.test_py36_class_syntax_usage và các annotation của LabelPoint2D được nêu trong báo cáo. So sánh các annotation quan sát được với mapping mà test mong đợi và xác minh rằng test chạy qua mà không làm hỏng 11 test còn lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- testing
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 52/100