Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#661 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@cig13zs がすでに取り組んでいます。

2026年10月15日 から。

  • #663 @cig13zs による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
18/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
devtools

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
862
フォーク
193
平均マージ
4日 2時間
マージ済み PR(30日)
25

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python-poetry/tomlkit のほかの issue

python-poetry/tomlkit の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。