This require the Cython "embedsignature" directive, that automatically add the signature in the first line of the docstring.
Then the Sphinx Autodoc module parse the docstring and extract the signature.
Signature is also cleaned using the 'autodoc-process-signature' callback to remove the 'self' param and all the cython params type,