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 MatchError comparison fallback implementation #896

Merged
merged 1 commit into from
Jul 14, 2020

Conversation

webknjaz
Copy link
Member

@webknjaz webknjaz commented Jul 14, 2020

The previous code wrongly raised NotImplementedError but the
correct way is to return the NotImplemented singleton instead.

This is a bugfix for the broken implementation introduced in #881.

Ref: https://docs.python.org/3/reference/datamodel.html#object.__lt__

The previous code wrongly raised NotImplementedError but the
correct way is to return the NotImplemented singleton instead.

This is a bugfix for the broken implementation introduced in #881.

Ref: https://docs.python.org/3/reference/datamodel.html#object.__lt__
@webknjaz webknjaz force-pushed the bugfixes/match-error-comparison-proto branch from 9b25fa2 to 6d1aa10 Compare July 14, 2020 15:40
@webknjaz webknjaz changed the title Fix MatchError comparison fallback implementation Fix MatchError comparison fallback implementation Jul 14, 2020
@webknjaz webknjaz merged commit d43a7d1 into master Jul 14, 2020
@ssbarnea ssbarnea deleted the bugfixes/match-error-comparison-proto branch July 25, 2020 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants