def findSnappedPort(self, pos):
        # FIXME don't hardcode input/output strings...
        snapModule = self.scene().findModuleUnder(pos)
        if snapModule and snapModule!=self.parentItem():
            if self.port.type == 'output':
                return snapModule.getDestPort(pos, self.port)
            elif self.port.type == 'input':
                return snapModule.getSourcePort(pos, self.port)
        else:
            return None
findSnappedPort(pos: QPoint) -> Port        
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/pipeline_view.py/QAbstractGraphicsPortItem.findSnappedPort