Fix wrong argparse type in modular checker script (#37472)

fix(util): wrong argparse type in modular checker script
This commit is contained in:
7mile 2025-04-14 23:11:29 +08:00 committed by GitHub
parent a53a63c9c2
commit a5dfb98977
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,7 +115,7 @@ def guaranteed_no_diff(modular_file_path, dependencies, models_in_diff):
if __name__ == "__main__": if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Compare modular_xxx.py files with modeling_xxx.py files.") parser = argparse.ArgumentParser(description="Compare modular_xxx.py files with modeling_xxx.py files.")
parser.add_argument( parser.add_argument(
"--files", default=["all"], type=list, nargs="+", help="List of modular_xxx.py files to compare." "--files", default=["all"], type=str, nargs="+", help="List of modular_xxx.py files to compare."
) )
parser.add_argument( parser.add_argument(
"--fix_and_overwrite", action="store_true", help="Overwrite the modeling_xxx.py file if differences are found." "--fix_and_overwrite", action="store_true", help="Overwrite the modeling_xxx.py file if differences are found."