mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-03 12:50:06 +06:00
Fix wrong argparse type in modular checker script (#37472)
fix(util): wrong argparse type in modular checker script
This commit is contained in:
parent
a53a63c9c2
commit
a5dfb98977
@ -115,7 +115,7 @@ def guaranteed_no_diff(modular_file_path, dependencies, models_in_diff):
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description="Compare modular_xxx.py files with modeling_xxx.py files.")
|
||||
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(
|
||||
"--fix_and_overwrite", action="store_true", help="Overwrite the modeling_xxx.py file if differences are found."
|
||||
|
Loading…
Reference in New Issue
Block a user