Skip to content

Commit 60062e8

Browse files
committed
add missing annotation on strerror
1 parent 30a0005 commit 60062e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zmq/error.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class ZMQError(ZMQBaseError):
2424
"""
2525

2626
errno: int | None = None
27+
strerror: str
2728

2829
def __init__(self, errno: int | None = None, msg: str | None = None):
2930
"""Wrap an errno style error.
@@ -116,6 +117,7 @@ class InterruptedSystemCall(ZMQError, InterruptedError):
116117
"""
117118

118119
errno = EINTR
120+
strerror: str
119121

120122
def __init__(self, errno="ignored", msg="ignored"):
121123
super().__init__(EINTR)

0 commit comments

Comments
 (0)