MCPcopy
hub / github.com/redis/redis-py / Subscription

Class Subscription

redis/typing.py:150–154  ·  view source on GitHub ↗

PubSub channel or pattern subscription with an optional handler.

Source from the content-addressed store, hash-verified

148
149@dataclass(frozen=True)
150class Subscription:
151 """PubSub channel or pattern subscription with an optional handler."""
152
153 name: ChannelT
154 handler: PubSubHandler | None = None
155
156
157class CommandsProtocol(Protocol):

Calls

no outgoing calls