Skip to content

Commit 77cbba5

Browse files
committed
Require remote protocol error event hints
1 parent d9452d8 commit 77cbba5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/wsproto/utilities.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ class RemoteProtocolError(ProtocolError):
4747
4848
.. attribute:: event_hint
4949
50-
This is a suggested wsproto Event to send to the client based
51-
on the error. It could be None if no hint is available.
50+
This is the suggested wsproto Event to send to the client based
51+
on the error.
5252
5353
"""
5454

55-
def __init__(self, message: str, event_hint: Event | None = None) -> None:
55+
def __init__(self, message: str, event_hint: Event) -> None:
5656
self.event_hint = event_hint
5757
super().__init__(message)
5858

0 commit comments

Comments
 (0)