Returning None instead of "python" if dataset is unformatted
{'login': 'TevenLeScao', 'id': 26709476, 'node_id': 'MDQ6VXNlcjI2NzA5NDc2', 'avatar_url': 'https://avatars.githubusercontent.com/u/26709476?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/TevenLeScao', 'html_url': 'https://github.com/TevenLeScao', 'followers_url': 'https://api.github.com/users/TevenLeScao/followers', 'following_url': 'https://api.github.com/users/TevenLeScao/following{/other_user}', 'gists_url': 'https://api.github.com/users/TevenLeScao/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/TevenLeScao/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/TevenLeScao/subscriptions', 'organizations_url': 'https://api.github.com/users/TevenLeScao/orgs', 'repos_url': 'https://api.github.com/users/TevenLeScao/repos', 'events_url': 'https://api.github.com/users/TevenLeScao/events{/privacy}', 'received_events_url': 'https://api.github.com/users/TevenLeScao/received_events', 'type': 'User', 'site_admin': False}
[]
[]
['We have to change the tests to expect `None` instead of `python` then'
 'Merging!']
{'url': 'https://api.github.com/repos/huggingface/datasets/pulls/526', 'html_url': 'https://github.com/huggingface/datasets/pull/526', 'diff_url': 'https://github.com/huggingface/datasets/pull/526.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/526.patch', 'merged_at': datetime.datetime(2020, 8, 24, 12, 50, 42)}
Following the discussion on Slack, this small fix ensures that calling `dataset.set_format(type=dataset.format["type"])` works properly. Slightly breaking as calling `dataset.format` when the dataset is unformatted will return `None` instead of `python`.
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/526/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}