Format a default value as a Python literal.
(val, py_type)
| 241 | |
| 242 | |
| 243 | def _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 | |
| 250 | def generate_component_file(impl_name, params, children, source_path=None, class_name=None): |
no outgoing calls
no test coverage detected