Fix `HfArgumentParser` when passing a generator (#15758)
Fix `HfArgumentParser` when passing a generator (#15758)

* Fix `HfArgumentParser` when passing a generator

* Add missing import

* Always convert `dataclass_types` into a list
huggingface/transformers,huggingface/transformers,huggingface/transformers,huggingface/transformers