docs: Fix function doc string generator return types

Change skip_return() access into a function call. This was causing
return type doc strings to always be skipped.