def pending_assignment(self):
        """Return the pending partition assignment that this state represents."""
        return {
            self.partitions[pid].name: [
                self.brokers[bid].id for bid in self.replicas[pid]
            ]
            for pid in set(self.pending_partitions)
        }