gh-108455: Run `mypy` on `Tools/peg_generator` (#108456) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>