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

Method type

source/python.js:22302–22308  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

22300 return self;
22301 }
22302 const type = (value) => {
22303 return value &&
22304 (value.__class__ === builtins.type ||
22305 value.__class__ === typing._TupleType ||
22306 value.__class__ === typing._SpecialGenericAlias ||
22307 value.__class__ === typing._SpecialForm);
22308 };
22309 const builtin = builtins[id];
22310 if (type(builtin)) {
22311 return builtin;

Callers 15

constructorMethod · 0.45
propagateNodeMethod · 0.45
isMutableTypeMethod · 0.45
combineConcatsMethod · 0.45
optimizeBlockMethod · 0.45
defaultSchemaForMethod · 0.45
createEnumValueMethod · 0.45
createListMethod · 0.45
createListUnpackMethod · 0.45
createTupleMethod · 0.45
createTupleUnpackMethod · 0.45
createTupleSliceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected