Merge type hints from `microsoft/python-type-stubs` (post dropping support for Python 3.8) (#38335)
* Merge type hints from microsoft/python-type-stubs (post Python 3.8)
* Remove mention of pylance
* Resolved conflict
* Merge type hints from microsoft/python-type-stubs (post Python 3.8)
* Remove mention of pylance
* Resolved conflict
* Update src/transformers/models/auto/configuration_auto.py
Co-authored-by: Avasam <samuel.06@hotmail.com>
---------
Co-authored-by: Matt <Rocketknight1@users.noreply.github.com>