Benjamin-eecs's picture
release v1: 65 held-out tasks, 78 bootstrap records, r2e_local adapter, manifest ae94c40b (part 2)
559318d verified
|
Raw History Blame Contribute Delete
711 Bytes

Issue

Title: Sequence validator raises AttributeError when validating a mapping

Description

When a field is typed as Sequence[T] and a mapping (e.g., a dictionary) is provided as input for that field, the validation process incorrectly raises an AttributeError. The expected behavior is for the validator to either successfully validate the mapping if it conforms to a sequence, or to raise a more appropriate validation error indicating a type mismatch, rather than an AttributeError.

Task

Modify the repository so that the issue described above is resolved. The task's test suite verifies your patch by applying it on top of the base commit 200203f9c4a5 and running the modified tests.