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

AttributeError on an out-of-order table under an indented header (4+ levels)

Đang mở
#661 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 2 ngày

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

Từ ngày 15/10/2026.

  • #663 của @cig13zs — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
18/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
devtools

Hướng nghiên cứu

Reproduce with tomlkit.parse(" [a.b.c.d]\n[a.b.c]") and compare with tomllib.loads on the same input. The error comes from OutOfOrderTableProxy lacking a trivia attribute, so start with how the parser handles out-of-order table proxies for indented headers. Done means both the table and array-of-tables inputs parse like tomllib, and the 3-level case from #263 still passes. Pull request #663 is already open against this issue, so check it before starting.

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

Mô tả

tomlkit.parse(" [a.b.c.d]\n[a.b.c]") raises ParseError: 'OutOfOrderTableProxy' object has no attribute 'trivia' at line 2 col 0.
tomllib.loads on the same input returns {'a': {'b': {'c': {'d': {}}}}}, and tomlkit accepts it without the leading space.
Same with " [[a.b.c.d]]\n[a.b.c]". This is #263 one level deeper; the 3-level case from #263 works on master.

Ngôn ngữ chính
Python
Star
862
Fork
193
Merge trung bình
4 ngày 2 giờ
Pull request đã merge (30 ngày)
25

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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 python-poetry/tomlkit

Tất cả issue của python-poetry/tomlkit

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.