def connect(self, receiver=None, **kwargs):
    '\n        Support decorator syntax:\n\n        >>> @signal.connect(sender=type)\n        >>> def my_receiver(**kwargs):\n        >>>     pass\n\n        '

    def wrapped(func):
        return super(BetterSignal, self).connect(func, **kwargs)
    if (receiver is None):
        return wrapped
    return wraps(receiver)(wrapped(receiver))
Support decorator syntax:

>>> @signal.connect(sender=type)
>>> def my_receiver(**kwargs):
>>>     pass
def connect(self, receiver=None, **kwargs):
    '\n        Support decorator syntax:\n\n        >>> @signal.connect(sender=type)\n        >>> def my_receiver(**kwargs):\n        >>>     pass\n\n        '

    def wrapped(func):
        return super(BetterSignal, self).connect(func, **kwargs)
    if (receiver is None):
        return wrapped
    return wraps(receiver)(wrapped(receiver))