Fix flake8 issues on v19, v20 and v21.0.rst
closes #24219
closes #24220
closes #24222
- [x] run `python make.py --single whatsnew/v0.19.0`, `python make.py --single whatsnew/v0.20.0` etc.
Related to: #24177
