diff --git a/utils/generate_inference_types.py b/utils/generate_inference_types.py index c5599a26a0..a773144c4c 100644 --- a/utils/generate_inference_types.py +++ b/utils/generate_inference_types.py @@ -354,7 +354,7 @@ def check_inference_types(update: bool) -> NoReturn: for file in INFERENCE_TYPES_FOLDER_PATH.glob("*.py"): if file.name in IGNORE_FILES: continue - content = file.read_text() + content = file.read_text().lstrip() content = _clean_deprecated_fields(content) fixed_content = fix_inference_classes(content, module_name=file.stem) fixed_content = fix_legacy_annotation(fixed_content)