python-poetry / tomlkit

Style-preserving TOML library for Python
MIT License
701 stars 99 forks source link

Fix division for integers #312

Closed anibali closed 1 year ago

anibali commented 1 year ago

This is a possible fix for https://github.com/sdispater/tomlkit/issues/309. Changes introduced in https://github.com/sdispater/tomlkit/pull/307 made it so that the float result of division on an Integer is wrapped as an Integer, which is incorrect.

I have included a test case which demonstrates the issue.