Commits

Carl Friedrich Bolz  committed 7b39d35 Draft

fix type hierarchy

  • Participants
  • Parent commits 3137b7b

Comments (0)

Files changed (1)

 
 class RPyType(type):
     def type_check(self, value):
-        pass
+        raise NotImplementedError("abstract base class")
 
-class RPyPrimitiveType(type):
+class RPyPrimitiveType(RPyType):
     def __init__(self, name, bases, dct):
         assert len(bases) == 1
         self.typ = self.__base__