pyre.components.Requirement

Module Contents

class pyre.components.Requirement.Requirement

Bases: pyre.patterns.AttributeClassifier.AttributeClassifier

Metaclass that enables the harvesting of trait declarations

This class captures the class record processing that is common to both interfaces and components. Given a declaration record, {Requirement}

  • discovers the bases classes that are configurables
  • identifies the specially marked attributes
  • creates the namemap that handles trait name aliasing
pyre_getLocalTraits(self, attributes)

Scan the dictionary {attributes} for trait descriptors

pyre_getInheritedTraits(self, shadowed)

Look through the ancestors of {configurable} for traits whose name are not members of {shadowed}, the set of names that are inaccessible.

pyre_getPedigree(self)

Visit my ancestors and locate the ones that are themselves configurables

pyre_getEigenPedigree(self)

Build a sequence of my ancestors that are configurable and NOT related to each other through inheritance