diff --git a/stubs/txzmq/pubsub.pyi b/stubs/txzmq/pubsub.pyi new file mode 100644 --- /dev/null +++ b/stubs/txzmq/pubsub.pyi @@ -0,0 +1,17 @@ +# Stubs for txzmq.pubsub (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from txzmq.connection import ZmqConnection +from typing import Any + +class ZmqPubConnection(ZmqConnection): + socketType: Any = ... + def publish(self, message: Any, tag: bytes = ...) -> None: ... + +class ZmqSubConnection(ZmqConnection): + socketType: Any = ... + def subscribe(self, tag: Any) -> None: ... + def unsubscribe(self, tag: Any) -> None: ... + def messageReceived(self, message: Any) -> None: ... + def gotMessage(self, message: Any, tag: Any) -> None: ...