MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / is_same_item

Function is_same_item

src/utils/utils.py:250–255  ·  view source on GitHub ↗

Compare two class items (methods or attributes) for equality.

(item1, item2)

Source from the content-addressed store, hash-verified

248
249
250def is_same_item(item1, item2):
251 """Compare two class items (methods or attributes) for equality."""
252 if callable(item1) and callable(item2):
253 return is_same_method(item1, item2)
254 else:
255 return item1 == item2
256
257
258def instance_to_source(instance, base_cls=None):

Callers

nothing calls this directly

Calls 1

is_same_methodFunction · 0.85

Tested by

no test coverage detected