MCPcopy Create free account
hub / github.com/apache/fory / __contains__

Method __contains__

python/pyfory/lib/collection.py:96–101  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

94 return self.data.get(IdentityWeakRef(key), default)
95
96 def __contains__(self, key):
97 try:
98 wr = IdentityWeakRef(key)
99 except TypeError:
100 return False
101 return wr in self.data
102
103 def items(self):
104 with _IterationGuard(self):

Callers

nothing calls this directly

Calls 1

IdentityWeakRefClass · 0.85

Tested by

no test coverage detected