MCPcopy Create free account
hub / github.com/alibaba/GraphScope / u_to_attr

Function u_to_attr

python/graphscope/framework/utils.py:290–292  ·  view source on GitHub ↗
(i: int)

Source from the content-addressed store, hash-verified

288
289
290def u_to_attr(i: int) -> attr_value_pb2.AttrValue:
291 check_argument(isinstance(i, int) and i >= 0)
292 return attr_value_pb2.AttrValue(u=i)
293
294
295def b_to_attr(b: bool) -> attr_value_pb2.AttrValue:

Callers

nothing calls this directly

Calls 1

check_argumentFunction · 0.90

Tested by

no test coverage detected