◐ Shell
clean mode source ↗

Message 210864 - Python tracker

Builtins with a valid signature embedded in the docstring, but with no other docstring content are not picked up by the __text_signature__ getter because the docstring ends with ")\n--" rather than ")\n--\n\n".  The attached patch adjusts clinic.CLanguage.docstring_for_c_string to make sure that the rendered docstring ends in "--\n\n" rather than "--".

The result is a correct __text_signature__ and a __doc__ of ''.