MCPcopy
hub / github.com/lutzroeder/netron / __getitem__

Method __getitem__

source/python.js:38–43  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

36 this.set(key, value);
37 }
38 __getitem__(key) {
39 if (!super.has(key)) {
40 throw new python.Error(`KeyError: ${key}`);
41 }
42 return super.get(key);
43 }
44 __delitem__(key) {
45 this.delete(key);
46 }

Callers 4

popMethod · 0.80
__setstate__Method · 0.80
constructorMethod · 0.80

Calls 2

hasMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected