docs: def partitioned_repertoire(self, direction, partition):
          """Compute the repertoire of a partitioned mechanism and purview."""
          repertoires = [
              self.repertoire(direction, part.mechanism, part.purview)
              for part in partition
          ]
          return functools.reduce(np.multiply, repertoires)