MCPcopy Create free account
hub / github.com/apache/tvm-ffi / _method_metadata

Function _method_metadata

tests/python/test_dataclass_init.py:68–73  ·  view source on GitHub ↗
(type_cls: type, method_name: str)

Source from the content-addressed store, hash-verified

66
67
68def _method_metadata(type_cls: type, method_name: str) -> dict[str, Any]:
69 type_info = getattr(type_cls, "__tvm_ffi_type_info__")
70 for method in type_info.methods:
71 if method.name == method_name:
72 return method.metadata
73 raise AssertionError(f"Cannot find method metadata: {type_cls.__name__}.{method_name}")
74
75
76class TestAutoInitMetadata:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected