Skip to content

Conversation

@alukach
Copy link
Member

@alukach alukach commented Feb 20, 2025

What I am changing

@alukach alukach requested a review from bitner February 20, 2025 17:13
@alukach alukach enabled auto-merge (squash) February 20, 2025 18:14
@alukach alukach merged commit be01ef4 into main Feb 20, 2025
1 check passed
@alukach alukach deleted the feature/add-expr branch February 20, 2025 18:17
['LC82030282019133LGN00']
"""

def __add__(self, other: "Expr") -> "Expr":
Copy link
Member

Choose a reason for hiding this comment

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

By the way you don't have to quote Expr here because you're in a pyi file

Comment on lines +92 to +95

fn __eq__(&self, rhs: &Expr) -> bool {
self.0 == rhs.0
}
Copy link
Member

Choose a reason for hiding this comment

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

You also have the option of putting

#[derive(Eq)]

on the pyclass:
https://pyo3.rs/v0.23.4/class.html?highlight=partialeq#customizing-the-class

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.

4 participants