Skip to content

[red-knot] feat: implement all rich comparison operators#13635

Closed
Slyces wants to merge 1 commit intoastral-sh:mainfrom
Slyces:feat/rich-comparison-algorithm
Closed

[red-knot] feat: implement all rich comparison operators#13635
Slyces wants to merge 1 commit intoastral-sh:mainfrom
Slyces:feat/rich-comparison-algorithm

Conversation

@Slyces
Copy link
Copy Markdown
Contributor

@Slyces Slyces commented Oct 4, 2024

The algorithm for rich comparison still has some todo items

Summary

The algorithm to perform rich comparisons on instances is non trivial. #13571 introduced a placeholder for __lt__.

This PR addresses some of the // TODO and contributes towards #13618.

Test Plan

To be done, this is why the PR is still a draft

The algorithm for rich comparison still has some todo items
@AlexWaygood AlexWaygood added the ty Multi-file analysis & type inference label Oct 7, 2024
@carljm
Copy link
Copy Markdown
Contributor

carljm commented Oct 17, 2024

We may want to get this in place soon; let us know if you'd like to continue with it, or if it would be better for one of us to pick it up and get it ready to land!

@Slyces
Copy link
Copy Markdown
Contributor Author

Slyces commented Oct 17, 2024

Hi, I've been a bit busy with work recently, I don't mind if someone picks the ticket!

Do you want me to close the draft PR?

@carljm
Copy link
Copy Markdown
Contributor

carljm commented Oct 17, 2024

No problem, thanks for replying! (And for all your contributions over the last few weeks.)

No need to close this PR, it may be useful reference / starting point. But (until/unless we hear otherwise) we'll assume that you aren't working on it and it's safe for one of us to pick it up from here, without duplicating work.

@cake-monotone
Copy link
Copy Markdown
Contributor

If it’s alright with you, would it be okay for me to continue with this work?

@carljm
Copy link
Copy Markdown
Contributor

carljm commented Oct 21, 2024

If it’s alright with you, would it be okay for me to continue with this work?

I think @Slyces already clarified above that this is open for someone else to pick up, so feel free to go ahead. And thank you!!

@AlexWaygood
Copy link
Copy Markdown
Member

Implemented by @cake-monotone in #13903. Thanks so much for your work here, really appreciate it!!

@Slyces Slyces deleted the feat/rich-comparison-algorithm branch October 28, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants