def subscribed(self):
        "Indicates if there are subscriptions to any channels or patterns"
        return bool(self.channels or self.patterns)
Indicates if there are subscriptions to any channels or patterns
stackoverflow/venv/lib/python3.6/site-packages/redis/client.py