(self, listener: UserListener)
return unsubdLisnr
Unsubscribe the specified listener from this topic. Returns
        the pub.Listener object associated with the listener that was
        unsubscribed, or None if the specified listener was not
        subscribed to this topic.  Note that this method calls
        ``notifyUnsubscribe(listener, self)`` on all registered notification
        handlers (see pub.addNotificationHandler).
Unsubscribe the specified listener from this topic. Returns
        the pub.Listener object associated with the listener that was
        unsubscribed, or None if the specified listener was not
        subscribed to this topic.  Note that this method calls
        ``notifyUnsubscribe(listener, self)`` on all registered notification
        handlers (see pub.addNotificationHandler).
Unsubscribe the specified listener from this topic . Returns the pub . Listener object associated with the listener that was unsubscribed or None if the specified listener was not subscribed to this topic . Note that this method calls notifyUnsubscribe ( listener self ) on all registered notification handlers ( see pub . addNotificationHandler ) .
def unsubscribe(self, listener: UserListener) -> Listener:
        """
        Unsubscribe the specified listener from this topic. Returns
        the pub.Listener object associated with the listener that was
        unsubscribed, or None if the specified listener was not
        subscribed to this topic.  Note that this method calls
        ``notifyUnsubscribe(listener, self)`` on all registered notification
        handlers (see pub.addNotificationHandler).
        """
        unsubdLisnr = self.__listeners.pop(listener, None)
        if unsubdLisnr is None:
            return None

        unsubdLisnr._unlinkFromTopic_()
        assert listener == unsubdLisnr.getCallable()

        # notify of unsubscription
        self._treeConfig.notificationMgr.notifyUnsubscribe(unsubdLisnr, self)

        return unsubdLisnr
def unsubscribe ( self , listener : UserListener ) -> Listener : unsubdLisnr = self . __listeners . pop ( listener , None ) if unsubdLisnr is None : return None unsubdLisnr . _unlinkFromTopic_ ( ) assert listener == unsubdLisnr . getCallable ( ) # notify of unsubscription self . _treeConfig . notificationMgr . notifyUnsubscribe ( unsubdLisnr , self ) return unsubdLisnr