In python 3.x, it is common to use return type annotation of a function, such as:
def foo() -> str:
What is the correct annotation for the “void” type?
I’m considering 3 options:
def foo() -> None:
not logical IMO, because None is not a type,
def foo() -> type(None):
using the best syntax I know for obtaining NoneType,