Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utils.toml: Handle tomlkit OutOfOrderTableProxy #5797

Merged
merged 1 commit into from
Jul 19, 2023

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
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