Skip to content

ListAttribute supports any Iterable types #688

Open
@pedrotcaraujo

Description

@pedrotcaraujo

Hi all,

By creating a new PynamoDB model in my project I noticed that the ListAttribute supports any iterable types, such as string or dict, for instance. Is that behavior expected?

if I assign a string to a ListAttribute, for example "asdf", it stores in dynamodb something like this ['a','s','d','f']

In this case, I'm fairly expecting to Pynamodb to accept only List types.

Thanks!

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