Apr-30-2017, 05:14 AM
Implicitly. No one ever explicitly returns None for __init__ or indeed many functions at all. I would say only explicitly return None on a function where that has meaning. If your function changes a mutable it was passed or simply is setting attributes on a class it is customary to leave it off. Functions with no explicit return statement will return None regardless.
This goes for almost every return in the code you posted, but as stated specifically jumps out for the init.
This goes for almost every return in the code you posted, but as stated specifically jumps out for the init.