pyzmq breaking changes
Updated December 4, 2026
On this page
Latest version 27.3.0, released November 4, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
- From 26.0.0 to 27.3.0: 567 breaking changes in 2 versions.
- From 23.0.0 to 27.3.0: 616 breaking changes in 5 versions.
pyzmq 27.3.0 breaking changes
- Signature changed
zmq.backend.cffi.message.Frame.__eq__
Was def __eq__(self, other); now def __eq__(self, other: Buffer, /) -> bool. pypi.org - Signature changed
zmq.backend.cffi.utils.PYZMQ_DRAFT_API
Was PYZMQ_DRAFT_API: bool; now PYZMQ_DRAFT_API: Final[bool]. pypi.org - Signature changed
zmq.eventloop.zmqstream.ZMQStream.on_recv
Was def on_recv(self, callback: Callable[[list[zmq.Frame]], Any] | Callable[[list[bytes]], Any], copy: bool = True) -> None; now def on_recv(self, callback: _CallbackRecv[_RecvT] | None, copy: bool = True) -> None. pypi.org - Signature changed
zmq.eventloop.zmqstream.ZMQStream.on_recv_stream
Was def on_recv_stream(self, callback: Callable[[ZMQStream, list[zmq.Frame]], Any] | Callable[[ZMQStream, list[bytes]], Any], copy: bool = True); now def on_recv_stream(self, callback: _CallbackRecvStream[_RecvT] | None, copy: bool = True)... pypi.org - Signature changed
zmq.eventloop.zmqstream.ZMQStream.on_send
Was def on_send(self, callback: Callable[[Sequence[Any], zmq.MessageTracker | None], Any]); now def on_send(self, callback: _CallbackSend | None) -> None. pypi.org - Signature changed
zmq.eventloop.zmqstream.ZMQStream.on_send_stream
Was def on_send_stream(self, callback: Callable[[ZMQStream, Sequence[Any], zmq.MessageTracker | None], Any]); now def on_send_stream(self, callback: Callable[[Self, list[Any], zmq.MessageTracker | None], Any] | None) -> None. pypi.org - Signature changed
zmq.eventloop.zmqstream.ZMQStream.send_json
Was def send_json(self, obj: Any, flags: int = 0, callback: Callable | None = None, **kwargs: Any); now def send_json(self, obj: Any, flags: int = 0, callback: _CallbackSend | None = None, **kwargs: Any) -> None. pypi.org - Signature changed
zmq.eventloop.zmqstream.ZMQStream.send_multipart
Was def send_multipart(self, msg: Sequence[Any], flags: int = 0, copy: bool = True, track: bool = False, callback: Callable | None = None, **kwargs: Any) -> None; now def send_multipart(self, msg: Sequence[Any], flags: int = 0, copy: bool... pypi.org - Signature changed
zmq.eventloop.zmqstream.ZMQStream.send_pyobj
Was def send_pyobj(self, obj: Any, flags: int = 0, protocol: int = -1, callback: Callable | None = None, **kwargs: Any); now def send_pyobj(self, obj: Any, flags: int = 0, protocol: int = -1, callback: _CallbackSend | None = None... pypi.org - Signature changed
zmq.eventloop.zmqstream.ZMQStream.send_string
Was def send_string(self, u: str, flags: int = 0, encoding: str = 'utf-8', callback: Callable | None = None, **kwargs: Any); now def send_string(self, u: str, flags: int = 0, encoding: str = 'utf-8', callback: _CallbackSend | None = None... pypi.org - Signature changed
zmq.eventloop.zmqstream.ZMQStream.set_close_callback
Was def set_close_callback(self, callback: Callable | None); now def set_close_callback(self, callback: Callable[[], _Ignored] | None) -> None. pypi.org - Signature changed
zmq.green.eventloop.zmqstream.ZMQStream.on_recv
Was def on_recv(self, callback: Callable[[list[zmq.Frame]], Any] | Callable[[list[bytes]], Any], copy: bool = True) -> None; now def on_recv(self, callback: _CallbackRecv[_RecvT] | None, copy: bool = True) -> None. pypi.org - Signature changed
zmq.green.eventloop.zmqstream.ZMQStream.on_recv_stream
Was def on_recv_stream(self, callback: Callable[[ZMQStream, list[zmq.Frame]], Any] | Callable[[ZMQStream, list[bytes]], Any], copy: bool = True); now def on_recv_stream(self, callback: _CallbackRecvStream[_RecvT] | None, copy: bool = True)... pypi.org - Signature changed
zmq.green.eventloop.zmqstream.ZMQStream.on_send
Was def on_send(self, callback: Callable[[Sequence[Any], zmq.MessageTracker | None], Any]); now def on_send(self, callback: _CallbackSend | None) -> None. pypi.org - Signature changed
zmq.green.eventloop.zmqstream.ZMQStream.on_send_stream
Was def on_send_stream(self, callback: Callable[[ZMQStream, Sequence[Any], zmq.MessageTracker | None], Any]); now def on_send_stream(self, callback: Callable[[Self, list[Any], zmq.MessageTracker | None], Any] | None) -> None. pypi.org - Signature changed
zmq.green.eventloop.zmqstream.ZMQStream.send_json
Was def send_json(self, obj: Any, flags: int = 0, callback: Callable | None = None, **kwargs: Any); now def send_json(self, obj: Any, flags: int = 0, callback: _CallbackSend | None = None, **kwargs: Any) -> None. pypi.org - Signature changed
zmq.green.eventloop.zmqstream.ZMQStream.send_multipart
Was def send_multipart(self, msg: Sequence[Any], flags: int = 0, copy: bool = True, track: bool = False, callback: Callable | None = None, **kwargs: Any) -> None; now def send_multipart(self, msg: Sequence[Any], flags: int = 0, copy: bool... pypi.org - Signature changed
zmq.green.eventloop.zmqstream.ZMQStream.send_pyobj
Was def send_pyobj(self, obj: Any, flags: int = 0, protocol: int = -1, callback: Callable | None = None, **kwargs: Any); now def send_pyobj(self, obj: Any, flags: int = 0, protocol: int = -1, callback: _CallbackSend | None = None... pypi.org - Signature changed
zmq.green.eventloop.zmqstream.ZMQStream.send_string
Was def send_string(self, u: str, flags: int = 0, encoding: str = 'utf-8', callback: Callable | None = None, **kwargs: Any); now def send_string(self, u: str, flags: int = 0, encoding: str = 'utf-8', callback: _CallbackSend | None = None... pypi.org - Signature changed
zmq.green.eventloop.zmqstream.ZMQStream.set_close_callback
Was def set_close_callback(self, callback: Callable | None); now def set_close_callback(self, callback: Callable[[], _Ignored] | None) -> None. pypi.org - Signature changed
zmq.MessageTracker.__init__
Was def __init__(self, *towatch: tuple[MessageTracker | Event | Frame]); now def __init__(self, *towatch: MessageTracker | Event | Frame) -> None. pypi.org - Signature changed
zmq.sugar.tracker.MessageTracker.__init__
Was def __init__(self, *towatch: tuple[MessageTracker | Event | Frame]); now def __init__(self, *towatch: MessageTracker | Event | Frame) -> None. pypi.org
pyzmq 27.2.0 breaking changes
- Signature changed
zmq.AFFINITY
Was AFFINITY: int; now AFFINITY: SocketOption. pypi.org - Signature changed
zmq.backend.Context.get
Was def get(self, option: int) -> int | bytes | str; now def get(self, option: int) -> int. pypi.org - Signature changed
zmq.backend.Context.set
Was def set(self, option: int, value: int | bytes | str) -> None; now def set(self, option: int, optval: int) -> None. pypi.org - Signature changed
zmq.backend.curve_public
Was def curve_public(secret_key: bytes) -> bytes; now def curve_public(secret_key: str | bytes) -> bytes. pypi.org - Signature changed
zmq.backend.Frame.buffer
Was buffer: Any; now buffer: memoryview. pypi.org - Signature changed
zmq.backend.IPC_PATH_MAX_LEN
Was IPC_PATH_MAX_LEN: int; now IPC_PATH_MAX_LEN: Final[int]. pypi.org - Signature changed
zmq.backend.proxy_steerable
Was def proxy_steerable(frontend: Socket, backend: Socket, capture: Socket | None = ..., control: Socket | None = ...) -> int; now def proxy_steerable(frontend: Socket, backend: Socket, capture: Socket | None = None, control: Socket | None... pypi.org - Signature changed
zmq.backend.PYZMQ_DRAFT_API
Was PYZMQ_DRAFT_API: bool; now PYZMQ_DRAFT_API: Final[bool]. pypi.org - Signature changed
zmq.backend.select.select_backend
Was def select_backend(name: str) -> Dict; now def select_backend(name: str) -> dict[str, Any]. pypi.org - Signature changed
zmq.backend.Socket.__init__
Was def __init__(self, context: Context | None = None, socket_type: int = 0, shadow: int = 0, copy_threshold: int | None = zmq.COPY_THRESHOLD) -> None; now def __init__(self, context: Context | None = None, socket_type: int = -1, shadow... pypi.org
And 535 more in this version. Sign up to see every change
pyzmq 26.0.0 breaking changes
- Signature changed
zmq.devices.monitoredqueue.monitored_queue
Was def monitored_queue(in_socket, out_socket, mon_socket, in_prefix=b'in', out_prefix=b'out'); now monitored_queue: Callable. pypi.org - Signature changed
zmq.sugar.context.Context
Was class Context(ContextBase, AttributeSetter, Generic[ST]); now class Context(ContextBase, AttributeSetter, Generic[_SocketType]). pypi.org - Signature changed
zmq.sugar.context.Context.__copy__
Was def __copy__(self: T, memo: Any = None) -> T; now def __copy__(self: _ContextType, memo: Any = None) -> _ContextType. pypi.org - Signature changed
zmq.sugar.context.Context.__enter__
Was def __enter__(self: T) -> T; now def __enter__(self: _ContextType) -> _ContextType. pypi.org - Signature changed
zmq.sugar.context.Context.__init__
Was def __init__(self: Context[Socket], io_threads: Union[int, Context] = 1, shadow: Union[Context, int] = 0) -> None; now def __init__(self: SyncContext, io_threads: int | Context = 1, shadow: Context | int = 0) -> None. pypi.org - Signature changed
zmq.sugar.context.Context.instance
Was @classmethod def instance(cls: Type[T], io_threads: int = 1) -> T; now @classmethod def instance(cls: type[_ContextType], io_threads: int = 1) -> _ContextType. pypi.org - Signature changed
zmq.sugar.context.Context.shadow
Was @classmethod def shadow(cls: Type[T], address: Union[int, Context]) -> T; now @classmethod def shadow(cls: type[_ContextType], address: int | zmq.Context) -> _ContextType. pypi.org - Signature changed
zmq.sugar.context.Context.shadow_pyczmq
Was @classmethod def shadow_pyczmq(cls: Type[T], ctx: Any) -> T; now @classmethod def shadow_pyczmq(cls: type[_ContextType], ctx: Any) -> _ContextType. pypi.org - Signature changed
zmq.sugar.context.Context.socket
Was def socket(self: T, socket_type: int, socket_class: Optional[Callable[[T, int], ST]] = None, **kwargs: Any) -> ST; now def socket(self: _ContextType, socket_type: int, socket_class: Callable[[_ContextType, int], _SocketType] | None =... pypi.org - Signature changed
zmq.sugar.socket.Socket
Was class Socket(SocketBase, AttributeSetter, Generic[ST]); now class Socket(SocketBase, AttributeSetter, Generic[SocketReturnType]). pypi.org
And 9 more in this version. Sign up to see every change
pyzmq 25.0.0 breaking changes
- Signature changed
zmq.auth.asyncio.AsyncioAuthenticator.__init__
Was def __init__(self, context: Optional[zmq.Context] = None, loop: Any = None); now def __init__(self, context: Optional[zmq.Context] = None, loop: Any = None, encoding: str = 'utf-8', log: Any = None). pypi.org - Signature changed
zmq.auth.Authenticator.configure_plain
Was def configure_plain(self, domain: str = '*', passwords: Dict[str, str] = None) -> None; now def configure_plain(self, domain: str = '*', passwords: Optional[Dict[str, str]] = None) -> None. pypi.org - Signature changed
zmq.auth.Authenticator.handle_zap_message
Was def handle_zap_message(self, msg: List[bytes]); now async def handle_zap_message(self, msg: List[bytes]). pypi.org - Signature changed
zmq.auth.base.Authenticator.configure_plain
Was def configure_plain(self, domain: str = '*', passwords: Dict[str, str] = None) -> None; now def configure_plain(self, domain: str = '*', passwords: Optional[Dict[str, str]] = None) -> None. pypi.org - Signature changed
zmq.auth.base.Authenticator.handle_zap_message
Was def handle_zap_message(self, msg: List[bytes]); now async def handle_zap_message(self, msg: List[bytes]). pypi.org - Signature changed
zmq.auth.ioloop.IOLoopAuthenticator
Was class IOLoopAuthenticator(Authenticator); now class IOLoopAuthenticator(AsyncioAuthenticator). pypi.org - Signature changed
zmq.auth.ioloop.IOLoopAuthenticator.__init__
Was def __init__(self, context: Optional[zmq.Context] = None, encoding: str = 'utf-8', log: Any = None, io_loop: Optional[ioloop.IOLoop] = None); now def __init__(self, context: Optional[zmq.Context] = None, encoding: str = 'utf-8', log... pypi.org - Signature changed
zmq.auth.thread.ThreadAuthenticator
Was class ThreadAuthenticator; now class ThreadAuthenticator(Authenticator). pypi.org - Signature changed
zmq.auth.thread.ThreadAuthenticator.configure_curve
Was def configure_curve(self, domain: str = '*', location: str = ''); now def configure_curve(self, domain: str = '*', location: Union[str, os.PathLike] = '.') -> None. pypi.org - Signature changed
zmq.backend.cffi.socket.Socket.__init__
Was def __init__(self, context=None, socket_type=None, shadow=None); now def __init__(self, context=None, socket_type=None, shadow=0, copy_threshold=None). pypi.org
And 18 more in this version. Sign up to see every change
pyzmq 24.0.0 breaking changes
- Signature changed
zmq.tests.test_win32_shim.allow_interrupt
Was allow_interrupt: Type[_allow_interrupt]; now class allow_interrupt. pypi.org - Signature changed
zmq.utils.win32.allow_interrupt
Was allow_interrupt: Type[_allow_interrupt]; now class allow_interrupt. pypi.org
pyzmq 23.0.0 breaking changes
- Signature changed
zmq.asyncio.Context
Was class Context(_zmq.Context); now class Context(_zmq.Context[Socket]). pypi.org - Signature changed
zmq.asyncio.Socket.__init__
Was def __init__(self, context=None, socket_type=-1, io_loop=None, **kwargs); now def __init__(self, context=None, socket_type=-1, io_loop=None, _from_socket: Optional[_zmq.Socket] = None, **kwargs) -> None. pypi.org - Signature changed
zmq.asyncio.Socket.recv
Was def recv(self, flags=0, copy=True, track=False); now def recv(self, flags: int = 0, copy: bool = True, track: bool = False) -> Awaitable[Union[bytes, _zmq.Frame]]. pypi.org - Signature changed
zmq.asyncio.Socket.send
Was def send(self, msg, flags=0, copy=True, track=False, **kwargs); now def send(self, data: Any, flags: int = 0, copy: bool = True, track: bool = False, **kwargs: Any) -> Awaitable[Optional[_zmq.MessageTracker]]. pypi.org - Signature changed
zmq.asyncio.Socket.send_multipart
Was def send_multipart(self, msg, flags=0, copy=True, track=False, **kwargs); now def send_multipart(self, msg_parts: Any, flags: int = 0, copy: bool = True, track=False, **kwargs) -> Awaitable[Optional[_zmq.MessageTracker]]. pypi.org - Signature changed
zmq.auth.Authenticator.configure_curve
Was def configure_curve(self, domain='*', location=None); now def configure_curve(self, domain: str = '*', location: Union[str, os.PathLike] = '.') -> None. pypi.org - Signature changed
zmq.auth.base.Authenticator.configure_curve
Was def configure_curve(self, domain='*', location=None); now def configure_curve(self, domain: str = '*', location: Union[str, os.PathLike] = '.') -> None. pypi.org - Signature changed
zmq.backend.Context.get
Was def get(self, option: int) -> Union[int, ByteString, str]; now def get(self, option: int) -> Union[int, bytes, str]. pypi.org - Signature changed
zmq.backend.Context.set
Was def set(self, option: int, value: Union[int, ByteString, str]) -> None; now def set(self, option: int, value: Union[int, bytes, str]) -> None. pypi.org - Signature changed
zmq.backend.Frame.bytes
Was bytes: ByteString; now bytes: bytes. pypi.org
And 23 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.