1

I was writing a comment inside the function and my IDE autocompleted it like this:

async def some_func():
    """

    :return:
    """

What is this :return: used for and where can I read more about this?

synalice
  • 188
  • 8

1 Answers1

1

this is part of the sphinx docstring format (there are many other format types like numpy, google, etc). this link should help describe in detail.

these docstring specification help with auto documentation like you see with many python packages (eg link see "Returns" section)

kamster
  • 139
  • 6