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

Method constructor

source/python.js:19–31  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

17 this._operators = new Map();
18 const dict = class extends Map {
19 constructor(items) {
20 super();
21 if (items) {
22 if (items instanceof Map) {
23 items = Array.from(items);
24 } else if (!Array.isArray(items)) {
25 items = Object.entries(items);
26 }
27 for (const [name, value] of items) {
28 this.__setitem__(name, value);
29 }
30 }
31 }
32 __contains__(key) {
33 return this.has(key);
34 }

Callers

nothing calls this directly

Calls 15

__setitem__Method · 0.80
registerTypeMethod · 0.80
__bool__Method · 0.80
__len__Method · 0.80
__int__Method · 0.80
__float__Method · 0.80
__str__Method · 0.80
__setattr__Method · 0.80
__encode__Method · 0.80
frontMethod · 0.80
__update_args_kwargsMethod · 0.80
itemsMethod · 0.80

Tested by

no test coverage detected