MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / __getitem__

Method __getitem__

test/utils_shared.py:321–326  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

319 dict.__init__(self, [(k, convert(v)) for k, v in data.items()])
320
321 def __getitem__(self, item):
322 try:
323 return dict.__getitem__(self, item)
324 except KeyError:
325 # Unlike a defaultdict, don't set the key, just return a dict.
326 return ScenarioDict({})
327
328
329class CompareType:

Callers

nothing calls this directly

Calls 1

ScenarioDictClass · 0.85

Tested by

no test coverage detected