Add/type annotations/model vision
I added type annotations for  Beit, ViT and Deit models at PyTorch as described in #16059 

@Rocketknight1 

fix the PR #16092 


Also, the issue with `make fix-copies` for ViT_mae, maybe I should open an issue?

For this PR, I just remove the type annotation of config parameter that cause the problem
_The documentation is not available anymore as the PR was closed or merged._<|||||>This looks really good! Good job handling the more intricate `Tuple` annotations as well as forward references well - this is a lot bigger and more challenging than most of the other type hint PRs, but it looks like you did it well. 

I have one final small issue - types should only be `Optional` when `None` is an allowable option. It looked like there were some cases when `Optional[bool]` was used for boolean arguments to internal methods which have to be either `True` or `False` - these should just be `bool`. Can you double-check that? Of course, when `None` is allowable or the default option, then `Optional[bool]` is correct. I'm not 100% certain on this one (maybe `None` really is allowable in all of those cases!), so if you think all your annotations were correct, let me know.<|||||>Hi, i have kept `Optional[bool]` just to keep everything equals. But I will take a look, if it can be changed to "bool", I will update it and let you know.<|||||>@Rocketknight1 i have changed to just `bool`, both cases work, but just `bool` seems more correct and clean for me.

When has `None` as default, the code will be `a if x is not None else b`, and with `False`/`True` will be just `a if x else b`


<|||||>Sounds good, reviewing now!<|||||>@Rocketknight1 about the `make fix-copies` isn't working for `ViT_mae` (config parameters), this is because don't have `with ViT->VitMAE` at the end of the “Copied from …” comment;

But i don't know if this annotation is really missing, or it was supposed to be this way