Use pyupgrade --py39-plus
Hi ! can you run `make style` to fix code formatting ? @lhoestq Fixed The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7428). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.