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

Restore numba.types as public API #5676

Merged
merged 2 commits into from May 7, 2020
Merged

Restore numba.types as public API #5676

merged 2 commits into from May 7, 2020

Conversation

sklam
Copy link
Member

@sklam sklam commented May 6, 2020

as titled.

@sklam sklam added this to the Numba 0.49.1 Final milestone May 6, 2020
"""Testing moved modules in Q1 2020 but were decided to kept as public API
"""
def tests_numba_types(self):
import numba.types
Copy link
Contributor

Choose a reason for hiding this comment

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

Should e.g. from numba.types import containers be explicitly tested too?

Copy link
Member Author

Choose a reason for hiding this comment

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

i can add a test. In general, I am only testing a few things because I am already checking for object identity. I don't think that's any reason for it to not work.

Copy link
Member Author

Choose a reason for hiding this comment

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

test added in 2998661

@sklam
Copy link
Member Author

sklam commented May 6, 2020

That error on macos is odd.

@sklam
Copy link
Member Author

sklam commented May 6, 2020

This is unexpected:

In [1]: import numba.types.misc

In [2]: numba.types.misc.StringLiteral
Out[2]: numba.types.misc.StringLiteral

In [3]: from numba.core import types

In [4]: types.StringLiteral
Out[4]: numba.core.types.misc.StringLiteral

Copy link
Contributor

@stuartarchibald stuartarchibald left a comment

Choose a reason for hiding this comment

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

Thanks for the patch. I tried this out manually, couldn't break it!

@stuartarchibald stuartarchibald added 5 - Ready to merge Review and testing done, is ready to merge and removed 3 - Ready for Review labels May 7, 2020
@stuartarchibald stuartarchibald mentioned this pull request May 7, 2020
22 tasks
@sklam sklam merged commit c5c86c3 into numba:master May 7, 2020
@sklam sklam deleted the fix/types_shim branch May 7, 2020 17:29
sklam added a commit that referenced this pull request May 7, 2020
and remove outdated test test_numba_types
@sklam sklam mentioned this pull request May 11, 2020
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants