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

Class EqualTo

tests/patterns/_impl.py:307–324  ·  view source on GitHub ↗

Matches any object that is equal to the specified object.

Source from the content-addressed store, hash-verified

305
306
307class EqualTo(Also):
308 """Matches any object that is equal to the specified object."""
309
310 def __init__(self, pattern, obj):
311 super().__init__(pattern)
312 self.obj = obj
313
314 def __repr__(self):
315 return repr(self.obj)
316
317 def __str__(self):
318 return str(self.obj)
319
320 def __getstate__(self):
321 return self.obj
322
323 def _also(self, value):
324 return self.obj == value
325
326
327class NotEqualTo(Also):

Callers 1

equal_toMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…