Fix `typing.get_type_hints` call on a `ModelHubMixin` (#2729)
* Add DataclassInstance for runtime type_checking
* Add suggestion from code review
* Fix type annotation
* Add test
* Actually fix type annotation (3.8)
---------
Co-authored-by: Celina Hanouti <hanouticelina@gmail.com>