[BUG] dataset_info sequence unexpected behavior in README.md YAML
NONE
The non-sequence case works well (`dict[str, str]` instead of `list[dict[str, str]]`), which makes me believe it shall be a bug for `sequence` and my proposed behavior shall be expected.
```
dataset_info:
- config_name: default
  features:
  - name: answers
    dtype:
    - name: text
      dtype: string
    - name: label
      dtype: string


# data
{"answers": {"text": "ADDRESS", "label": "abc"}}
```
2024-09-05T06:10:08Z
https://github.com/huggingface/datasets/issues/7137#issuecomment-2330679985
https://api.github.com/repos/huggingface/datasets/issues/7137
IC_kwDODunzps6K61qx
https://api.github.com/repos/huggingface/datasets/issues/comments/2330679985/reactions
2024-09-05T06:10:38Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2330679985
https://avatars.githubusercontent.com/u/13214530?v=4
https://api.github.com/users/ain-soph/events{/privacy}
https://api.github.com/users/ain-soph/followers
https://api.github.com/users/ain-soph/following{/other_user}
https://api.github.com/users/ain-soph/gists{/gist_id}
https://github.com/ain-soph
ain-soph
MDQ6VXNlcjEzMjE0NTMw
https://api.github.com/users/ain-soph/orgs
https://api.github.com/users/ain-soph/received_events
https://api.github.com/users/ain-soph/repos
https://api.github.com/users/ain-soph/starred{/owner}{/repo}
https://api.github.com/users/ain-soph/subscriptions
User
https://api.github.com/users/ain-soph
public
NONE
According to https://github.com/huggingface/datasets/issues/7590#issuecomment-3035647354
replacing `sequence` to `list` will solve this issue.

```
dataset_info:
- config_name: default
  features:
  - name: answers
     list:
     - name: text
      sequence: string
    - name: label
      sequence: string
```
2025-07-04T19:50:59Z
https://github.com/huggingface/datasets/issues/7137#issuecomment-3037150929
https://api.github.com/repos/huggingface/datasets/issues/7137
IC_kwDODunzps61Bz7R
https://api.github.com/repos/huggingface/datasets/issues/comments/3037150929/reactions
2025-07-04T19:50:59Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3037150929
https://avatars.githubusercontent.com/u/13214530?v=4
https://api.github.com/users/ain-soph/events{/privacy}
https://api.github.com/users/ain-soph/followers
https://api.github.com/users/ain-soph/following{/other_user}
https://api.github.com/users/ain-soph/gists{/gist_id}
https://github.com/ain-soph
ain-soph
MDQ6VXNlcjEzMjE0NTMw
https://api.github.com/users/ain-soph/orgs
https://api.github.com/users/ain-soph/received_events
https://api.github.com/users/ain-soph/repos
https://api.github.com/users/ain-soph/starred{/owner}{/repo}
https://api.github.com/users/ain-soph/subscriptions
User
https://api.github.com/users/ain-soph
public
MEMBER
Btw you can use `list` instead of `sequence` everywhere for consistency:

```
dataset_info:
- config_name: default
  features:
  - name: answers
    list:
    - name: text
      list: string
    - name: label
      list: string
```
2025-07-07T09:20:29Z
https://github.com/huggingface/datasets/issues/7137#issuecomment-3044140508
https://api.github.com/repos/huggingface/datasets/issues/7137
IC_kwDODunzps61ceXc
https://api.github.com/repos/huggingface/datasets/issues/comments/3044140508/reactions
2025-07-07T09:20:29Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3044140508
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
### Describe the bug

When working on `dataset_info` yaml, I find my data column with format `list[dict[str, str]]` cannot be coded correctly.

My data looks like
```
{"answers":[{"text": "ADDRESS", "label": "abc"}]}
```

My `dataset_info` in README.md is:
```
dataset_info:
- config_name: default
  features:
  - name: answers
    sequence:
    - name: text
      dtype: string
    - name: label
      dtype: string
```

**Error log**:
```
pyarrow.lib.ArrowNotImplementedError: Unsupported cast from list<item: struct<text: string, label: string>> to struct using function cast_struct
```

## Potential Reason
After some analysis, it turns out that my yaml config is requiring `dict[str, list[str]]` instead of `list[dict[str, str]]`. It would work if I change my data to
```
{"answers":{"text": ["ADDRESS"], "label": ["abc", "def"]}}
```

These following 2 different `dataset_info` are actually equivalent.

```
dataset_info:
- config_name: default
  features:
  - name: answers
    dtype:
    - name: text
      sequence: string
    - name: label
      sequence: string

dataset_info:
- config_name: default
  features:
  - name: answers
    sequence:
    - name: text
      dtype: string
    - name: label
      dtype: string
```



### Steps to reproduce the bug


```
# README.md
---
dataset_info:
- config_name: default
  features:
  - name: answers
    sequence:
    - name: text
      dtype: string
    - name: label
      dtype: string
configs:
- config_name: default
  default: true
  data_files:
  - split: train
    path:
    - "test.jsonl"
---



# test.jsonl

# expected but not working
{"answers":[{"text": "ADDRESS", "label": "abc"}]}

# unexpected but working
{"answers":{"text": ["ADDRESS"], "label": ["abc", "def"]}}

```

### Expected behavior

```
dataset_info:
- config_name: default
  features:
  - name: answers
    sequence:
    - name: text
      dtype: string
    - name: label
      dtype: string
```
Should work on following data format:

```
{"answers":[{"text":"ADDRESS", "label": "abc"}]}
```

### Environment info

- `datasets` version: 2.21.0
- Platform: macOS-14.6.1-arm64-arm-64bit
- Python version: 3.12.4
- `huggingface_hub` version: 0.24.5
- PyArrow version: 17.0.0
- Pandas version: 2.2.2
- `fsspec` version: 2024.6.1