Skip to content

Comments

fix: Add DottedKey to a super table gives wrong output (#431)#435

Merged
frostming merged 1 commit intopython-poetry:masterfrom
deltamarnix:add-dotted-keys-to-super
Jul 7, 2025
Merged

fix: Add DottedKey to a super table gives wrong output (#431)#435
frostming merged 1 commit intopython-poetry:masterfrom
deltamarnix:add-dotted-keys-to-super

Conversation

@deltamarnix
Copy link
Contributor

When a table is already a super table, appending dotted items to it will result in wrong behavior. The header was missing, so the final result was an incorrect representation of the document.

Because super_table is already set and can no longer be re-evaluated, I have added a check to the renderer instead, so that it can determine if the header should be rendered.

I have not gone through different edge cases, but it seems that all other tests are still passing.

When a table is already a super table, appending dotted items to it will result in wrong behavior.
The header was missing, so the final result was an incorrect representation of the document.

Because super_table is already set and can no longer be re-evaluated,
I have added a check to the renderer instead, so that it can determine if the header should be rendered.

I have not gone through different edge cases, but it seems that all other tests are still passing.
@frostming frostming linked an issue Jul 7, 2025 that may be closed by this pull request
@frostming frostming merged commit b9d22fb into python-poetry:master Jul 7, 2025
25 checks passed
@frostming
Copy link
Contributor

Thank you for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add DottedKey to a super table gives wrong output

2 participants