From 60062e821371ecee39097b1dfe86dc17f46474bd Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 14 Jan 2025 09:19:14 +0100 Subject: [PATCH] add missing annotation on strerror --- zmq/error.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zmq/error.py b/zmq/error.py index 6184b578e..ddfa46353 100644 --- a/zmq/error.py +++ b/zmq/error.py @@ -24,6 +24,7 @@ class ZMQError(ZMQBaseError): """ errno: int | None = None + strerror: str def __init__(self, errno: int | None = None, msg: str | None = None): """Wrap an errno style error. @@ -116,6 +117,7 @@ class InterruptedSystemCall(ZMQError, InterruptedError): """ errno = EINTR + strerror: str def __init__(self, errno="ignored", msg="ignored"): super().__init__(EINTR)