Raise error if ClassLabel names is not python list
NONE
_The documentation is not available anymore as the PR was closed or merged._
2022-12-14T08:23:43Z
https://github.com/huggingface/datasets/pull/5359#issuecomment-1350616024
https://api.github.com/repos/huggingface/datasets/issues/5359
IC_kwDODunzps5QgMPY
https://api.github.com/repos/huggingface/datasets/issues/comments/1350616024/reactions
2022-12-22T16:35:48Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1350616024
https://avatars.githubusercontent.com/u/99929124?v=4
https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}
https://api.github.com/users/HuggingFaceDocBuilderDev/followers
https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}
https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}
https://github.com/HuggingFaceDocBuilderDev
HuggingFaceDocBuilderDev
U_kgDOBfTMJA
https://api.github.com/users/HuggingFaceDocBuilderDev/orgs
https://api.github.com/users/HuggingFaceDocBuilderDev/received_events
https://api.github.com/users/HuggingFaceDocBuilderDev/repos
https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}
https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions
User
https://api.github.com/users/HuggingFaceDocBuilderDev
public
MEMBER
Thanks for your proposed fix, @freddyheppell.

Currently the CI fails because in a test we pass a `tuple` instead of a `list`. I would say we should accept `tuple` as a valid input type as well...

What about checking for `Sequence` instead?
2022-12-14T09:24:12Z
https://github.com/huggingface/datasets/pull/5359#issuecomment-1350710500
https://api.github.com/repos/huggingface/datasets/issues/5359
IC_kwDODunzps5QgjTk
https://api.github.com/repos/huggingface/datasets/issues/comments/1350710500/reactions
2022-12-14T09:24:12Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1350710500
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
CONTRIBUTOR
Fixed that @albertvillanova, can you approve CI again please? Had some issues related to Pytorch .so files when running tests on my M1 mac, so wasn't able to test locally first. Have got them working on my desktop now though.
2022-12-14T12:38:17Z
https://github.com/huggingface/datasets/pull/5359#issuecomment-1351281263
https://api.github.com/repos/huggingface/datasets/issues/5359
IC_kwDODunzps5Qiupv
https://api.github.com/repos/huggingface/datasets/issues/comments/1351281263/reactions
2022-12-14T12:38:17Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1351281263
https://avatars.githubusercontent.com/u/1475568?v=4
https://api.github.com/users/freddyheppell/events{/privacy}
https://api.github.com/users/freddyheppell/followers
https://api.github.com/users/freddyheppell/following{/other_user}
https://api.github.com/users/freddyheppell/gists{/gist_id}
https://github.com/freddyheppell
freddyheppell
MDQ6VXNlcjE0NzU1Njg=
https://api.github.com/users/freddyheppell/orgs
https://api.github.com/users/freddyheppell/received_events
https://api.github.com/users/freddyheppell/repos
https://api.github.com/users/freddyheppell/starred{/owner}{/repo}
https://api.github.com/users/freddyheppell/subscriptions
User
https://api.github.com/users/freddyheppell
public
Checks type of names provided to ClassLabel to avoid easy and hard to debug errors (closes #5332 - see for discussion)