Skip to content

Commit

Permalink
test: ✅ update numpy.dtype type argument
Browse files Browse the repository at this point in the history
it accepts a type argument, and if it is unknown it is typing.Any
  • Loading branch information
ringohoffman committed Nov 20, 2023
1 parent 301a579 commit 666b454
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ def accept_ndarray_float64(
def accept_ndarray_int(arg0: typing.Annotated[numpy.ndarray, numpy.int32]) -> None: ...
def get_ndarray_float64() -> typing.Annotated[numpy.ndarray, numpy.float64]: ...
def get_ndarray_int() -> typing.Annotated[numpy.ndarray, numpy.int32]: ...
def return_dtype() -> numpy.dtype: ...
def return_dtype() -> numpy.dtype[typing.Any]: ...
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ def accept_ndarray_float64(
def accept_ndarray_int(arg0: typing.Annotated[numpy.ndarray, numpy.int32]) -> None: ...
def get_ndarray_float64() -> typing.Annotated[numpy.ndarray, numpy.float64]: ...
def get_ndarray_int() -> typing.Annotated[numpy.ndarray, numpy.int32]: ...
def return_dtype() -> numpy.dtype: ...
def return_dtype() -> numpy.dtype[typing.Any]: ...
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ def accept_ndarray_float64(
def accept_ndarray_int(arg0: typing.Annotated[numpy.ndarray, numpy.int32]) -> None: ...
def get_ndarray_float64() -> typing.Annotated[numpy.ndarray, numpy.float64]: ...
def get_ndarray_int() -> typing.Annotated[numpy.ndarray, numpy.int32]: ...
def return_dtype() -> numpy.dtype: ...
def return_dtype() -> numpy.dtype[typing.Any]: ...
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from __future__ import annotations

import typing

import numpy
import typing_extensions

Expand All @@ -21,4 +23,4 @@ def get_ndarray_float64() -> typing_extensions.Annotated[
numpy.ndarray, numpy.float64
]: ...
def get_ndarray_int() -> typing_extensions.Annotated[numpy.ndarray, numpy.int32]: ...
def return_dtype() -> numpy.dtype: ...
def return_dtype() -> numpy.dtype[typing.Any]: ...
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from __future__ import annotations

import typing

import numpy
import typing_extensions

Expand All @@ -21,4 +23,4 @@ def get_ndarray_float64() -> typing_extensions.Annotated[
numpy.ndarray, numpy.float64
]: ...
def get_ndarray_int() -> typing_extensions.Annotated[numpy.ndarray, numpy.int32]: ...
def return_dtype() -> numpy.dtype: ...
def return_dtype() -> numpy.dtype[typing.Any]: ...

0 comments on commit 666b454

Please sign in to comment.