code: def of(cls, part_class):
          
          copy = type(
              "VectorOf%s" % part_class.__name__,
              cls.__bases__, dict(cls.__dict__)
          )
          copy.item_class = part_class
  
          return copy
docs: Creates a new class with the ``item_class`` attribute properly set.