wrong return type for `IterableDataset.shard()`
MEMBER
Oops my bad ! thanks for reporting
2024-12-03T14:27:25Z
https://github.com/huggingface/datasets/issues/7297#issuecomment-2514718305
https://api.github.com/repos/huggingface/datasets/issues/7297
IC_kwDODunzps6V445h
https://api.github.com/repos/huggingface/datasets/issues/comments/2514718305/reactions
2024-12-03T14:27:25Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2514718305
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

`IterableDataset.shard()` has the wrong typing for its return as `"Dataset"`. It should be `"IterableDataset"`. Makes my IDE unhappy.

### Steps to reproduce the bug

look at [the source code](https://github.com/huggingface/datasets/blob/main/src/datasets/iterable_dataset.py#L2668)?

### Expected behavior

Correct return type as `"IterableDataset"`

### Environment info

datasets==3.1.0