FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[BUG] Serialising a tuple doesn't work · Issue #1275 · docarray/docarray · GitHub

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

Description

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


Back | FazBrowse Home | New Git URL