def __iadd__(self, quantity: 'Quantity') -> 'Wallet':
    if quantity.is_locked:
        if (quantity.path_id not in self.locked.keys()):
            self._locked[quantity.path_id] = quantity
        else:
            self._locked[quantity.path_id] += quantity
    else:
        self._balance += quantity
    return self
def __iadd__(self, quantity: 'Quantity') -> 'Wallet':
    if quantity.is_locked:
        if (quantity.path_id not in self.locked.keys()):
            self._locked[quantity.path_id] = quantity
        else:
            self._locked[quantity.path_id] += quantity
    else:
        self._balance += quantity
    return self