Pattern: Inheritance from non-class
Issue: -
Used when a class inherits from something which is not a class. Python will raise an exception on runtime and program will not execute.
Example of incorrect code:
class Bad(1): # [inherit-non-class]
""" Can't inherit from instance. """
Example of correct code:
class Good(object):
pass