gh-36148: fix the 2 broken linters
This repairs the two broken linters.
### :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/36148
Reported by: Frédéric Chapoton
Reviewer(s): David Coudert, Frédéric Chapoton