<s> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> from typedmodels . models import TypedModel <EOL> from django . utils . six import text_type <EOL> @ python_2_unicode_compatible <EOL> class Animal ( TypedModel ) : <EOL> """<STR_LIT>""" <EOL> name = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> def say_something ( self ) : <EOL> raise NotImplementedError <EOL> def __str__ ( self ) : <EOL> return text_type ( self . name ) <EOL> class Canine ( Animal ) : <EOL> def say_something ( self ) : <EOL> return "<STR_LIT>" <EOL> class Feline ( Animal ) : <EOL> def say_something ( self ) : <EOL> return "<STR_LIT>" <EOL> mice_eaten = models . IntegerField ( default = <NUM_LIT:0> ) <EOL> class BigCat ( Feline ) : <EOL> """<STR_LIT>""" <EOL> def say_something ( self ) : <EOL> return "<STR_LIT>" <EOL> class AngryBigCat ( BigCat ) : <EOL> """<STR_LIT>""" <EOL> canines_eaten = models . ManyToManyField ( <EOL> Canine <EOL> ) <EOL> def say_something ( self ) : <EOL> return "<STR_LIT>" <EOL> class Parrot ( Animal ) : <EOL> known_words = models . IntegerField ( ) <EOL> def say_something ( self ) : <EOL> return "<STR_LIT:hello>" <EOL> class AbstractVegetable ( TypedModel ) : <EOL> """<STR_LIT>""" <EOL> name = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> color = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> yumness = models . FloatField ( null = False ) <EOL> class Fruit ( AbstractVegetable ) : <EOL> pass <EOL> class Vegetable ( AbstractVegetable ) : <EOL> pass </s>
