(self)
| 39 | """ |
| 40 | |
| 41 | def __dir__(self): |
| 42 | plist = ctypes.POINTER(ctypes.c_char_p)() |
| 43 | size = ctypes.c_uint() |
| 44 | check_call( |
| 45 | _LIB.DGLObjectListAttrNames( |
| 46 | self.handle, ctypes.byref(size), ctypes.byref(plist) |
| 47 | ) |
| 48 | ) |
| 49 | names = [] |
| 50 | for i in range(size.value): |
| 51 | names.append(py_str(plist[i])) |
| 52 | return names |
| 53 | |
| 54 | def __hash__(self): |
| 55 | return _api_internal._raw_ptr(self) |
nothing calls this directly
no test coverage detected