'Commit attributes.
This is used by a partial-attribute load operation to mark committed
those attributes which were refreshed from the database.
Attributes marked as "expired" can potentially remain "expired" after
this step if a value was not populated in state.dict.'

def _commit(self, dict_, keys):

    for key in keys:
        self.committed_state.pop(key, None)
    self.expired = False
    for key in set(self.callables).intersection(keys).intersection(dict_):
        del self.callables[key]
