Top "Return-type" questions

is for questions dealing with the type of the variable or value returned by a function.

How to specify multiple return types in a function docstring in Python?

I am aware of the syntax used to build a docstring for Google style such as: def function_with_types_…

python python-sphinx return-type docstring sphinx-napoleon
Why can't I explicitly return void from a method?

void run() { ... if (done) return cancel(); ... } where cancel() return void. This won't compile... and I can almost understand why. But …

java void return-type