Is there any difference in the return type hint amongst these three functions?
def my_func1():
print("Hello World")
return None
def my_func2():
print("Hello World")
return
def my_func3():
print("Hello World")
Should they all have -> None
return type hint, since that's what they in fact return, explicitly or implicitly? Or should my_func2
or my_func3
have literally no return type hint?
Motivations for asking are this question, and this nice answer, and the fact that I'm learning Type Hints.