Note: void is not a keyword in Python or a type for functions\methods that return nothing.
Python void function
A simple example code shows that void functions return None.
def foo(): pass def goo(): return None # Now try the following print(foo()) print(goo())
foo() returns void,(simplicity returns
None as what
goo() returns explicitly).
Do comment if you have any doubts or suggestions on this Python function topic.
Note: IDE: PyCharm 2021.3.3 (Community Edition)
All Python Examples are in Python 3, so Maybe its different from python 2 or upgraded versions.