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.