def __repr__(self):
        return "<Requirements({})>".format(self.filename.name or "")
def __init__(self):
        super(TransactionStates, self).__init__()
        self._states = defaultdict(TransactionState)