File size: 711 Bytes
622387b | 1 2 3 4 5 6 7 8 9 10 | # 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. |