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

Method __ffi_compare__

tests/python/test_dataclass_compare.py:1316–1317  ·  view source on GitHub ↗
(self, other: _PyCmp, fn_cmp: _Callable_cmp[..., _Any_cmp])

Source from the content-addressed store, hash-verified

1314 return fn_eq(self.key, other.key)
1315
1316 def __ffi_compare__(self, other: _PyCmp, fn_cmp: _Callable_cmp[..., _Any_cmp]) -> int:
1317 return fn_cmp(self.key, other.key)
1318
1319
1320def test_py_class_custom_eq_ignores_label() -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected