Tests typing and fixes for push_to_hub
The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7608). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
todo:
- [x] fix TestPushToHub.test_push_dataset_dict_to_hub_iterable_num_proc