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

Class VariablesResponseBody

_pydevd_bundle/_debug_adapter/pydevd_schema.py:16484–16520  ·  view source on GitHub ↗

"body" of VariablesResponse Note: automatically generated code. Do not edit manually.

Source from the content-addressed store, hash-verified

16482
16483@register
16484class VariablesResponseBody(BaseSchema):
16485 """
16486 "body" of VariablesResponse
16487
16488 Note: automatically generated code. Do not edit manually.
16489 """
16490
16491 __props__ = {
16492 "variables": {
16493 "type": "array",
16494 "items": {"$ref": "#/definitions/Variable"},
16495 "description": "All (or a range) of variables for the given variable reference.",
16496 }
16497 }
16498 __refs__ = set()
16499
16500 __slots__ = list(__props__.keys()) + ["kwargs"]
16501
16502 def __init__(self, variables, update_ids_from_dap=False, **kwargs): # noqa (update_ids_from_dap may be unused)
16503 """
16504 :param array variables: All (or a range) of variables for the given variable reference.
16505 """
16506 self.variables = variables
16507 if update_ids_from_dap and self.variables:
16508 for o in self.variables:
16509 Variable.update_dict_ids_from_dap(o)
16510 self.kwargs = kwargs
16511
16512 def to_dict(self, update_ids_to_dap=False): # noqa (update_ids_to_dap may be unused)
16513 variables = self.variables
16514 if variables and hasattr(variables[0], "to_dict"):
16515 variables = [x.to_dict() for x in variables]
16516 dct = {
16517 "variables": [Variable.update_dict_ids_to_dap(o) for o in variables] if (update_ids_to_dap and variables) else variables,
16518 }
16519 dct.update(self.kwargs)
16520 return dct
16521
16522
16523@register

Callers 3

on_variables_requestMethod · 0.90
__init__Method · 0.85

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected