Skip to content

Commit f40f1b3

Browse files
committed
Use versionchanged annotation for event hint
1 parent b1dc8d5 commit f40f1b3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/wsproto/utilities.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ class RemoteProtocolError(ProtocolError):
5050
This is the suggested wsproto Event to send to the client based
5151
on the error.
5252
53+
.. versionchanged:: 1.4.0
54+
Made ``event_hint`` a required argument.
55+
5356
"""
5457

55-
# API-breaking change for the next minor release: event_hint is required.
5658
def __init__(self, message: str, event_hint: Event) -> None:
5759
self.event_hint = event_hint
5860
super().__init__(message)

0 commit comments

Comments
 (0)