fix misplaced docstrings

Found using the eastood lint tool.