# we should not disconnect from upstream if
# there are still elements depending on us.
assert len(self.downstream_elements) == 0, "there are still downstream elements left"
# we should not disconnect from upstream if
# there are still elements depending on us.
assert len(self.downstream_elements) == 0, "there are still downstream elements left"
self.source.disconnectDownstream(self)
def disconnectDownstream(self, downstream):
self.source.disconnectDownstream(self)
def disconnectDownstream(self, downstream):