diff --git a/dev_tools/route_extract.py b/dev_tools/route_extract.py index 485414aa3..cfa1cf5d3 100644 --- a/dev_tools/route_extract.py +++ b/dev_tools/route_extract.py @@ -95,7 +95,7 @@ class RouteExtract: def model_to_json(model, file): content = model.model_dump_json(indent=2) - with open(file, 'w', encoding='utf-8') as f: + with open(file, 'w', encoding='utf-8', newline='') as f: f.write(content)