Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit 05f7e3d

Browse files
committed
🎨 use better dict update syntax
1 parent 920c545 commit 05f7e3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pincer/core/gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def append_handlers(self, handlers: Dict[int, Handler]):
181181
"""The Client that uses the handler can append their own methods. The gateway
182182
will run those methods when the specified opcode is received.
183183
"""
184-
self.__dispatch_handlers = handlers | self.__dispatch_handlers
184+
self.__dispatch_handlers |= handlers
185185

186186
def set_session_id(self, _id: str):
187187
"""Session id is private for consistency"""

0 commit comments

Comments
 (0)