transformers
ce83f16d - fix: restore mypy type checking for PreTrainedConfig subclasses (#45071) (#45240)

Commit
3 days ago
fix: restore mypy type checking for PreTrainedConfig subclasses (#45071) (#45240) * fix: restore mypy type checking for PreTrainedConfig subclasses (#45071) Add @dataclass_transform (PEP 681) so type checkers can synthesize __init__ signatures from dataclass fields. No runtime behavior change. Same pattern used by pydantic and attrs. * style --------- Co-authored-by: raushan <raushan@huggingface.co>
Author
Parents
Loading