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

Function b_to_attr

python/graphscope/framework/utils.py:295–297  ·  view source on GitHub ↗
(b: bool)

Source from the content-addressed store, hash-verified

293
294
295def b_to_attr(b: bool) -> attr_value_pb2.AttrValue:
296 check_argument(isinstance(b, bool))
297 return attr_value_pb2.AttrValue(b=b)
298
299
300def s_to_attr(s: str) -> attr_value_pb2.AttrValue:

Callers

nothing calls this directly

Calls 1

check_argumentFunction · 0.90

Tested by

no test coverage detected