MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / to_dict

Method to_dict

_pydevd_bundle/_debug_adapter/pydevd_schema.py:11681–11692  ·  view source on GitHub ↗
(self, update_ids_to_dap=False)

Source from the content-addressed store, hash-verified

11679 return dct
11680
11681 def to_dict(self, update_ids_to_dap=False): # noqa (update_ids_to_dap may be unused)
11682 id = self.id # noqa (assign to builtin)
11683 name = self.name
11684 if update_ids_to_dap:
11685 if id is not None:
11686 id = self._translate_id_to_dap(id) # noqa (assign to builtin)
11687 dct = {
11688 "id": id,
11689 "name": name,
11690 }
11691 dct.update(self.kwargs)
11692 return dct
11693
11694 @classmethod
11695 def update_dict_ids_to_dap(cls, dct):

Callers 1

Calls 2

_translate_id_to_dapMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected