def connection(self, type=None, unit=None, plug=False):
    'Singular version of :func:`connections()`'
    return next(self.connections(type, unit, plug), None)
Singular version of :func:`connections()`
def connection(self, type=None, unit=None, plug=False):
    
    return next(self.connections(type, unit, plug), None)