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

Method object_hook

src/debugpy/common/messaging.py:1339–1345  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

1337 # for all JSON objects, and track them so that they can be later wired up to
1338 # the Message they belong to, once it is instantiated.
1339 def object_hook(d):
1340 d = MessageDict(None, d)
1341 if "seq" in d:
1342 self._prettify(d)
1343 d.associate_with = associate_with
1344 message_dicts.append(d)
1345 return d
1346
1347 # A hack to work around circular dependency between messages, and instances of
1348 # MessageDict in their payload. We need to set message for all of them, but it

Callers

nothing calls this directly

Calls 3

_prettifyMethod · 0.95
MessageDictClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected