Skip to content

Update MapConstraint to handle type coercion for typed.Dict correctly. - #7309

Merged
sklam merged 1 commit into
numba:masterfrom
stuartarchibald:fix/6420
Nov 18, 2021
Merged

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

Conversation

@stuartarchibald

Copy link
Copy Markdown
Contributor

As title. typed.Dict takes its type from the first element so
coercion must be done against the type of that element. Further only
"safe" conversions are permitted as per the typed.Dict impl,
everything else compatible is typed as a LiteralStrKeyDict.

Fixes #6420.

As title. `typed.Dict` takes its type from the first element so
coercion must be done against the type of that element. Further only
"safe" conversions are permitted as per the typed.Dict impl,
everything else compatible is typed as a LiteralStrKeyDict.

Fixes numba#6420.
@gmarkall gmarkall added this to the Numba 0.55 RC milestone Aug 23, 2021

@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.

Thanks for the patch!

@sklam sklam added 5 - Ready to merge Review and testing done, is ready to merge and removed 3 - Ready for Review labels Nov 17, 2021
@sklam
sklam merged commit 0e89f59 into numba:master Nov 18, 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.

Incorrect typing of something that should be a LiteralStrKeyDict and a typed Dict

3 participants