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

Method is_response

src/debugpy/common/messaging.py:493–499  ·  view source on GitHub ↗

Returns True if this message is a Response to a request of one of the specified types.

(self, *command)

Source from the content-addressed store, hash-verified

491 return command == () or self.command in command
492
493 def is_response(self, *command):
494 """Returns True if this message is a Response to a request of one of the
495 specified types.
496 """
497 if not isinstance(self, Response):
498 return False
499 return command == () or self.request.command in command
500
501 def error(self, exc_type, format_string, *args, **kwargs):
502 """Returns a new exception of the specified type from the point at which it is

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected