Adding type hints & decorator for TFT5
@Rocketknight1 
The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_16275). All of your documentation changes will be reflected on that endpoint.<|||||>Hi @Dahlbomii, thanks for this PR! It looks good, and thanks for doing both the type hinting and decorator change in the same PR. There's one failing TF test that's worrying us, but I've reviewed the whole PR and I can't see what would cause that, so I suspect it might be a problem with the test. We're investigating!<|||||>@Rocketknight1 the failing test is in a function associated to the decorator -- I can take a look 🔍 <|||||>HF was down when the tests were executed (HTTP errors all around) - rerunning tests :)<|||||>@Dahlbomii we have renamed our key branch from `master` to `main`. Fetching new commits in your fork, running these instructions (https://github.com/huggingface/transformers/issues/16289), then rebasing this branch should fix the tests.

Apologies for the extra work 🙏 <|||||>It's probably easier if I just make a new PR in a new fork, one sec!