gh-37258: add type annotations to gens methods
This is adding type annotations to many `gens` methods.
This will help to make them all return `tuple` later.
### :memo: Checklist
- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
URL: https://github.com/sagemath/sage/pull/37258
Reported by: Frédéric Chapoton
Reviewer(s): Matthias Köppe