I understand that __init__() is required to return None, but when Visual Studio autocompletes a derived class __init__() for me, it does so like this:
class Base:
def __init__(self):
print('Base')
class Derived(Base):
def __init__(self):
return super().__init__() # This part is added by VS Code
It's obviously not a syntax issue, as the Base __init__ is returning None, which the derived class in turn returns as well.
But why even bother having that? What purpose does the return statement serve here?