MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / sort_key

Method sort_key

tensorflow/tools/docs/parser_test.py:238–239  ·  view source on GitHub ↗
(prop_info)

Source from the content-addressed store, hash-verified

236 # 'Alias for field number ##'. These props are returned sorted.
237
238 def sort_key(prop_info):
239 return int(prop_info.obj.__doc__.split(' ')[-1])
240
241 self.assertSequenceEqual(page_info.properties,
242 sorted(page_info.properties, key=sort_key))

Callers

nothing calls this directly

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected