(self, block: 'Block', new_pos: Tuple[float, float],
                  pin: Pin, i: int, output: bool)
Keep pins on their respective places.
Keep pins on their respective places.
Keep pins on their respective places .
def _bind_pin(self, block: 'Block', new_pos: Tuple[float, float],
                  pin: Pin, i: int, output: bool):
        """ Keep pins on their respective places. """
        pin.y = (block.y + (block.height - block.label.height) - i * self.gap +
                 pin.height / 2)
        if output:
            pin.x = block.x + block.width - self.gap
        else:
            pin.x = block.x + 5
def _bind_pin ( self , block : 'Block' , new_pos : Tuple [ float , float ] , pin : Pin , i : int , output : bool ) : pin . y = ( block . y + ( block . height - block . label . height ) - i * self . gap + pin . height / 2 ) if output : pin . x = block . x + block . width - self . gap else : pin . x = block . x + 5