(self, to_remove: List[_CachedRelation])
Remove all the listed relations. Ignore relations that have been
        cascaded out.
Remove all the listed relations. Ignore relations that have been
        cascaded out.
Remove all the listed relations . Ignore relations that have been cascaded out .
def _remove_all(self, to_remove: List[_CachedRelation]):
        """Remove all the listed relations. Ignore relations that have been
        cascaded out.
        """
        for relation in to_remove:
            # it may have been cascaded out already
            drop_key = _make_key(relation)
            if drop_key in self.relations:
                self.drop(drop_key)
def _remove_all ( self , to_remove : List [ _CachedRelation ] ) : for relation in to_remove : # it may have been cascaded out already drop_key = _make_key ( relation ) if drop_key in self . relations : self . drop ( drop_key )