CLN: Minor touchups to docstrings + use assert_produces_warning