fix: remove unused _yaml_scalar and redundant isinstance guard
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -186,14 +186,6 @@ def _route_to_yaml_fields(r: Route) -> dict[str, object]:
|
||||
return fields
|
||||
|
||||
|
||||
def _yaml_scalar(v: object) -> str:
|
||||
if isinstance(v, bool):
|
||||
return "true" if v else "false"
|
||||
if isinstance(v, str):
|
||||
return f'"{v}"'
|
||||
return str(v)
|
||||
|
||||
|
||||
def egress_render_routes(
|
||||
routes: tuple[EgressRoute, ...],
|
||||
) -> str:
|
||||
|
||||
Reference in New Issue
Block a user