MCPcopy Create free account
hub / github.com/microsoft/debugpy / __init__

Method __init__

src/debugpy/common/messaging.py:554–561  ·  view source on GitHub ↗
(self, channel, seq, event, body, json=None)

Source from the content-addressed store, hash-verified

552 """
553
554 def __init__(self, channel, seq, event, body, json=None):
555 super().__init__(channel, seq, json)
556
557 self.event = event
558
559 if isinstance(body, MessageDict) and hasattr(body, "associate_with"):
560 body.associate_with(self)
561 self.body = body
562
563 def describe(self):
564 return f"#{self.seq} event {json.repr(self.event)} from {self.channel}"

Callers 7

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

associate_withMethod · 0.80

Tested by

no test coverage detected