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

MAINT: Replace "dtype[Any]" with dtype in the definiton of npt.ArrayLike #19330

Merged
merged 3 commits into from Jun 24, 2021

Commits on Jun 24, 2021

  1. MAINT: Replace "dtype[Any]" with dtype in the definiton of `npt.A…

    …rrayLike`
    
    Strings and types that are not subscriptable during runtime can cause issues with runtime Introspection helpers such as `typing.get_type_hints`.
    
    While this is very much an upstream issue, the particular case of `npt.ArrayLike` can be quite easily resolved in numpy.
    BvB93 committed Jun 24, 2021
    Copy the full SHA
    7d397c2 View commit details
    Browse the repository at this point in the history
  2. TST: Test that the numpy.typing public API works in combination wit…

    …h runtime Introspection helpers
    
    * `typing.get_type_hints`
    * `typing.get_args`
    * `typing.get_origin`
    BvB93 committed Jun 24, 2021
    Copy the full SHA
    90e7ff1 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    c433e54 View commit details
    Browse the repository at this point in the history