Default values are added to docstrings so they appear in the docs. This should help maintainers to keep them up-to-date. Fix #2547.