transformers
0adcb072 - chore(typing): add `ty` type checking for src/transformers/generation

Commit
118 days ago
chore(typing): add `ty` type checking for src/transformers/generation Add type declarations for mixin host-class attributes on GenerationMixin, class-level annotations for dynamically-set attributes on GenerationConfig, and fix minor typing issues in candidate_generator, watermarking, and stopping_criteria. Create _typing.py Protocol for documentation/reuse.
Author
Committer
Parents
Loading