erlexec icon indicating copy to clipboard operation
erlexec copied to clipboard

Extend operation on DocumentArray applies change before validation

Open Jackmin801 opened this issue 3 years ago • 7 comments
trafficstars

from docarray import Document

d = Document(id='Meow')
d.chunks.extend([1, 2, 3])
d.summary()

Expected Behavior Throws an error and keeps the Document intact.

Current Behavior Throws an error but modifies the Document.

Reproduction of the bug in colab environment: https://colab.research.google.com/drive/1n0olEkZ9iKSIvtq1kXbLv5hv59MsSv1L?usp=sharing

Jackmin801 avatar Sep 20 '22 14:09 Jackmin801