Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong indent in utils/check_if_new_model_added.py #30456

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions utils/check_if_new_model_added.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ def get_new_python_files() -> List[str]:
find_new_model = reg.findall(x)
if len(find_new_model) > 0:
new_model = find_new_model[0]
# It's unlikely we have 2 new modeling files in a pull request.
break
# It's unlikely we have 2 new modeling files in a pull request.
break
Comment on lines +94 to +95
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we break the loop when we find a new modeling file. Previously, we break the loop after the first step (no matter if we find new modeling file).

print(new_model)
Loading