Skip to content

[BUG] Serialising a tuple doesn't work  #1275

@azayz

Description

@azayz

Describe the bug
A clear and concise description of what the bug is.

Creating an input schema with a tuple doesn't work

To Reproduce
Steps to reproduce the behavior:

from docarray import BaseDocument

class InputSchema(BaseDocument):
    data: Dict

doc = InputSchema(data = {'data': (1, 2)})

doc2 = MyDoc.from_protobuf(doc.to_protobuf())

>>> ValueError: ('Field `a` is problematic', 'Unexpected type')

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions