Skip to content

Commit

Permalink
add missing annotation on strerror
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Jan 14, 2025
1 parent 30a0005 commit 60062e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zmq/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -116,6 +117,7 @@ class InterruptedSystemCall(ZMQError, InterruptedError):
"""

errno = EINTR
strerror: str

def __init__(self, errno="ignored", msg="ignored"):
super().__init__(EINTR)
Expand Down

0 comments on commit 60062e8

Please sign in to comment.