Skip to content

Dump converts int or bool to float #2816

Open
@Oriel-Barroso

Description

@Oriel-Barroso

I have an schema:

class ExampleSchema(Schema):
    name: str
    value: int | float | bool

When I pass an integer or boolean value, marshmallow converts it into a float. Is there any clean way to correct this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions