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

STY: Use explicit reexports for numpy.typing objects #18191

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

pmav99
Copy link
Contributor

@pmav99 pmav99 commented Jan 19, 2021

mypy --strict is disabling implicit_reexport. Consequently, when we try to
import ArrayLike and DTypeLike from numpy.typing, mypy throws an error.

With this commit we add explicit "reexports" for these two objects.

Fixes #18190

`mypy --strict` is disabling `implicit_reexport`.  Consequently, when we try to
 import `ArrayLike` and `DTypeLike` from `numpy.typing`, mypy throws an error.

With this commit we add explicit "reexports" for these two objects.

Fixes numpy#18190
Copy link
Member

@BvB93 BvB93 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the help!

@charris charris merged commit 9c63473 into numpy:master Jan 19, 2021
@charris
Copy link
Member

charris commented Jan 19, 2021

Thanks @pmav99 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mypy --strict error when importing numpy.typing
3 participants