We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9452d8 commit 77cbba5Copy full SHA for 77cbba5
1 file changed
src/wsproto/utilities.py
@@ -47,12 +47,12 @@ class RemoteProtocolError(ProtocolError):
47
48
.. attribute:: event_hint
49
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.
+ This is the suggested wsproto Event to send to the client based
+ on the error.
52
53
"""
54
55
- def __init__(self, message: str, event_hint: Event | None = None) -> None:
+ def __init__(self, message: str, event_hint: Event) -> None:
56
self.event_hint = event_hint
57
super().__init__(message)
58
0 commit comments