MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / __contains__

Method __contains__

tests/test_code/py/pytz/lazy.py:30–38  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

28 return self.data[key.upper()]
29
30 def __contains__(self, key):
31 if self.data is None:
32 _fill_lock.acquire()
33 try:
34 if self.data is None:
35 self._fill()
36 finally:
37 _fill_lock.release()
38 return key in self.data
39
40 def __iter__(self):
41 if self.data is None:

Callers

nothing calls this directly

Calls 1

_fillMethod · 0.45

Tested by

no test coverage detected