MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / __contains__

Method __contains__

21-async/mojifinder/bottle.py:1948–1948  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

1946 if a or ka: self.update(*a, **ka)
1947
1948 def __contains__(self, key): return _hkey(key) in self.dict
1949 def __delitem__(self, key): del self.dict[_hkey(key)]
1950 def __getitem__(self, key): return self.dict[_hkey(key)][-1]
1951 def __setitem__(self, key, value): self.dict[_hkey(key)] = [_hval(value)]

Callers

nothing calls this directly

Calls 1

_hkeyFunction · 0.85

Tested by

no test coverage detected