-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
float addition with tomlkit.items.Integer raises a NotImplementedType Exception #214
Comments
Do you have the logs of the error ? |
I do! Here's the stack trace:
|
I didn't check the code of tomlkit but if you convert the doc['table']['my_int'] to int it's works ? |
i thinks it's line 640 on items.py : result = super().add(other) |
if you do : doc['table']['my_int'] + 5 it's work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Title says it all. Adding a tomlkit.items.Integer with a float will raise a NotImplementedType exception.
Here's the breaking code:
System Info
Python version: 3.8.13
Tomlkit version: 0.11.1
OS: Windows 10
Other stuff
Some quick googling looks like the same issue shows up in another project here.
The text was updated successfully, but these errors were encountered: