DOC: Fix validation error type `RT01` and check in CI (#25356)
- [x] closes #25356
- [x] passes `./scripts/validate_docstrings.py --errors=RT01`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
