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 dali binding #102

Merged
merged 2 commits into from
Apr 19, 2024
Merged

Fix dali binding #102

merged 2 commits into from
Apr 19, 2024

Conversation

yuema137
Copy link
Contributor

Pydantic validators are called according to the sequence of the input arguments. In the old code "bind" was behind "partition", so the binding reset for dali

def overwrite_for_dali(cls, v: str, values: Dict[Any, Any]) -> str:

doesn't actually work, as the bind will be overwritten in the bind validator.

This PR fixes this problem by moving "bind" in front of "partition"

@yuema137 yuema137 merged commit 93b7ccf into master Apr 19, 2024
1 check passed
@dachengx dachengx deleted the fix_dali_binding branch April 20, 2024 01:44
@@ -151,3 +152,5 @@ def test_submit_job_arguments():
assert (
len(missing_params) == 0
), f"Missing parameters in submit_job: {', '.join(missing_params)}"


Copy link
Contributor

Choose a reason for hiding this comment

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

No extra final line please.

@DonNabla DonNabla mentioned this pull request Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants