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

Clean code by checking attribute. #779

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Conversation

marcenacp
Copy link
Contributor

No description provided.

@marcenacp marcenacp requested a review from a team as a code owner December 3, 2024 09:00
Copy link

github-actions bot commented Dec 3, 2024

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@marcenacp marcenacp force-pushed the feature/clean-code-after-nerge branch from 7e246db to 153374f Compare December 3, 2024 09:25
if not self.parents:
return None
raise ValueError(f"node={self} does not have any parent.")
Copy link
Contributor

Choose a reason for hiding this comment

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

There are no nodes that can have no parents? What about the Metadata node?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@marcenacp marcenacp force-pushed the feature/clean-code-after-nerge branch from 153374f to ac2ea66 Compare December 3, 2024 10:32
@marcenacp marcenacp merged commit 39210cc into main Dec 3, 2024
12 checks passed
@marcenacp marcenacp deleted the feature/clean-code-after-nerge branch December 3, 2024 10:46
@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants