Skip to content

Fix unicode operator.eq handling of Optional types. - #7477

Merged
sklam merged 1 commit into
numba:masterfrom
stuartarchibald:fix/7474
Oct 11, 2021
Merged

sklam merged 1 commit into
numba:masterfrom
stuartarchibald:fix/7474

Conversation

@stuartarchibald

Copy link
Copy Markdown
Contributor

As title. This makes it such that the unicode operator.eq
implementation checks for Optional types and handles them at
runtime if they are present.

Fixes #7474

As title. This makes it such that the unicode `operator.eq`
implementation checks for Optional types and handles them at
runtime if they are present.

Fixes numba#7474

@sklam sklam left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

Details: I tried to come up with a simpler solution but I couldn't. To do so, we will need to implement some utils around optional, possibly some intrinsic to unwrapping optional at runtime.

@sklam sklam added 5 - Ready to merge Review and testing done, is ready to merge and removed 3 - Ready for Review labels Oct 11, 2021
@sklam
sklam merged commit 679ade8 into numba:master Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 - Ready to merge Review and testing done, is ready to merge Effort - short Short size effort needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrongly evaluated equality comparison

2 participants