What is the expected behavior of the following code?
Sub_A.make() returns the integer 1, while Sub_B inherits Super.make(), which implicitly returns None. Adding an integer to None raises a TypeError.
Sub_A.make()
1
Sub_B
Super.make()
None
TypeError
Community Discussion