File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -323,17 +323,20 @@ async def send_notification(
323323 notification : SendNotificationT ,
324324 related_request_id : RequestId | None = None ,
325325 ) -> None :
326+ """
327+ Emits a notification, which is a one-way message that does not expect
328+ a response.
329+ """
326330 await self ._send_notification_internal (notification , related_request_id )
327331
332+ # this method is required as SendNotificationT type checking prevents
333+ # internal use for sending cancelation - typechecking sorcery may be
334+ # required
328335 async def _send_notification_internal (
329336 self ,
330337 notification : SendNotificationInternalT ,
331338 related_request_id : RequestId | None = None ,
332339 ) -> None :
333- """
334- Emits a notification, which is a one-way message that does not expect
335- a response.
336- """
337340 # Some transport implementations may need to set the related_request_id
338341 # to attribute to the notifications to the request that triggered them.
339342 jsonrpc_notification = JSONRPCNotification (
You can’t perform that action at this time.
0 commit comments