Skip to content

Conversation

Fokko
Copy link
Contributor

@Fokko Fokko commented Oct 3, 2025

Rationale for this change

Are these changes tested?

Are there any user-facing changes?

@Fokko
Copy link
Contributor Author

Fokko commented Oct 3, 2025

@kevinjqliu Easy one, this one unblocks the expressions that use Reference

Copy link
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines -224 to -226
def __eq__(self, other: Any) -> bool:
"""Return the equality of two instances of the Reference class."""
return self.name == other.name if isinstance(other, Reference) else False
Copy link
Contributor

@kevinjqliu kevinjqliu Oct 5, 2025

Choose a reason for hiding this comment

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

pydantic should fall back to the RootModel's __eq__ which checks the root fields

@kevinjqliu kevinjqliu merged commit 2ad3280 into apache:main Oct 5, 2025
10 checks passed
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