MCPcopy Create free account
hub / github.com/CMU-SAFARI/ramulator2 / _format_python_default

Function _format_python_default

python/ramulator/codegen.py:243–247  ·  view source on GitHub ↗

Format a default value as a Python literal.

(val, py_type)

Source from the content-addressed store, hash-verified

241
242
243def _format_python_default(val, py_type):
244 """Format a default value as a Python literal."""
245 if isinstance(val, str):
246 return repr(val)
247 return repr(val)
248
249
250def generate_component_file(impl_name, params, children, source_path=None, class_name=None):

Callers 1

generate_component_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected