Improved type annotation
NONE
@lhoestq  Could someone please take a quick look or let me know if there’s anything I should change? Thanks!
2025-05-09T09:27:56Z
https://github.com/huggingface/datasets/pull/7429#issuecomment-2865841156
https://api.github.com/repos/huggingface/datasets/issues/7429
IC_kwDODunzps6q0UQE
https://api.github.com/repos/huggingface/datasets/issues/comments/2865841156/reactions
2025-05-09T09:27:56Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2865841156
https://avatars.githubusercontent.com/u/45285915?v=4
https://api.github.com/users/saiden89/events{/privacy}
https://api.github.com/users/saiden89/followers
https://api.github.com/users/saiden89/following{/other_user}
https://api.github.com/users/saiden89/gists{/gist_id}
https://github.com/saiden89
saiden89
MDQ6VXNlcjQ1Mjg1OTE1
https://api.github.com/users/saiden89/orgs
https://api.github.com/users/saiden89/received_events
https://api.github.com/users/saiden89/repos
https://api.github.com/users/saiden89/starred{/owner}{/repo}
https://api.github.com/users/saiden89/subscriptions
User
https://api.github.com/users/saiden89
public
MEMBER
could you fix the conflicts ? I think some type annotations have been improved since your first commit
2025-05-12T14:47:39Z
https://github.com/huggingface/datasets/pull/7429#issuecomment-2872874932
https://api.github.com/repos/huggingface/datasets/issues/7429
IC_kwDODunzps6rPJe0
https://api.github.com/repos/huggingface/datasets/issues/comments/2872874932/reactions
2025-05-12T14:47:39Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2872874932
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
NONE
It should be good now.
I'm happy to add more annotations or refine further if needed—just let me know!
2025-05-13T08:40:13Z
https://github.com/huggingface/datasets/pull/7429#issuecomment-2875565923
https://api.github.com/repos/huggingface/datasets/issues/7429
IC_kwDODunzps6rZadj
https://api.github.com/repos/huggingface/datasets/issues/comments/2875565923/reactions
2025-05-13T08:40:13Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2875565923
https://avatars.githubusercontent.com/u/45285915?v=4
https://api.github.com/users/saiden89/events{/privacy}
https://api.github.com/users/saiden89/followers
https://api.github.com/users/saiden89/following{/other_user}
https://api.github.com/users/saiden89/gists{/gist_id}
https://github.com/saiden89
saiden89
MDQ6VXNlcjQ1Mjg1OTE1
https://api.github.com/users/saiden89/orgs
https://api.github.com/users/saiden89/received_events
https://api.github.com/users/saiden89/repos
https://api.github.com/users/saiden89/starred{/owner}{/repo}
https://api.github.com/users/saiden89/subscriptions
User
https://api.github.com/users/saiden89
public
I've refined several type annotations throughout the codebase to align with current best practices and enhance overall clarity. Given the complexity of the code, there may still be areas that need further attention. I welcome any feedback or suggestions to make these improvements even better.

 - Fixes #7202 