MCPcopy Create free account
hub / github.com/apache/fory / __init__

Method __init__

python/pyfory/serializer.py:544–547  ·  view source on GitHub ↗
(self, type_resolver, ftype, type_id: str)

Source from the content-addressed store, hash-verified

542 typecodearray_type = {typecode: ftype for typecode, (_itemsize, ftype, _type_id) in typecode_dict.items()}
543
544 def __init__(self, type_resolver, ftype, type_id: str):
545 super().__init__(type_resolver, ftype)
546 self.typecode = typeid_code[type_id]
547 self.itemsize, ftype, self.type_id = typecode_dict[self.typecode]
548
549 def _array_type_id(self, value):
550 entry = typecode_dict.get(value.typecode)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected