Skip to content

Conversation

flichtenheld
Copy link
Contributor

@flichtenheld flichtenheld commented Jul 18, 2023

We get this when we have subtables that do not
directly follow their parent table.

Fixes: #5794

The fix

I think this issue and the fix show that we're way too deep into the tomlkit internals. I think
in the long run it would be much better to try to use a higher level interface... But I really don't
have time to go that deep into the code to find out whether that is even feasible. So for now
the minimal fix.

The checklist

  • Associated issue
  • A news fragment in the news/ directory to describe this fix with the extension .bugfix.rst, .feature.rst, .behavior.rst, .doc.rst. .vendor.rst. or .trivial.rst (this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.

We get this when we have subtables that do not
directly follow their parent table.

Fixes: pypa#5794

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
@matteius matteius merged commit 7085c79 into pypa:main Jul 19, 2023
@matteius
Copy link
Member

Thanks for your contribution @flichtenheld !

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.

Some Pipfiles trigger AttributeError: 'OutOfOrderTableProxy' object has no attribute '_body'

2 participants