pyre.records.Templater

Module Contents

class pyre.records.Templater.Templater(name, bases, attributes, **kwds)

Bases: pyre.patterns.AttributeClassifier.AttributeClassifier

Metaclass that inspects record declarations and endows their instances with the necessary infrastructure to support

  • named access of the fields in a record
  • composition via inheritance
  • derivations, i.e. fields whose values depend on the values of other fields