MCPcopy Create free account
hub / github.com/JDAI-CV/DNNLibrary / param_to_string_in_declaration

Function param_to_string_in_declaration

generate_code.py:32–36  ·  view source on GitHub ↗
(param: Dict[str, str])

Source from the content-addressed store, hash-verified

30
31
32def param_to_string_in_declaration(param: Dict[str, str]) -> str:
33 ret = param['type'] + ' ' + param['name']
34 if 'default' in param:
35 ret += '=' + param['default']
36 return ret
37
38
39def param_to_string_in_definition(param: Dict[str, str]) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected