Updated cfunction in base.rst

Added documentation to specify return type annotations in cfunction