API: Simplify repeat signature
- [X] closes #24413
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

Doesn't seem like a whatsnew entry is needed here as the behavior from a user perspective should remain the same.

cc @TomAugspurger 