Skip to content

float addition with tomlkit.items.Integer raises a NotImplementedType Exception #214

@Poofjunior

Description

@Poofjunior

Title says it all. Adding a tomlkit.items.Integer with a float will raise a NotImplementedType exception.

Here's the breaking code:

content = '[table]\nmy_int = 2048'
doc  = parse(content)

doc['table']['my_int'] + 5.0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions