Skip to content

Commit

Permalink
TST: Avoid possible warning from unnecessary cast with uninitialized …
Browse files Browse the repository at this point in the history
…values

This should be fixed in `choose` to not do the unnecessary cast,
see gh-22237.
  • Loading branch information
seberg committed Sep 9, 2022
1 parent 9111eab commit f096789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/typing/tests/data/pass/ndarray_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SubClass(np.ndarray): ...
B1 = np.empty((1,), dtype=np.int32).view(SubClass)
B2 = np.empty((1, 1), dtype=np.int32).view(SubClass)
C: np.ndarray[Any, np.dtype[np.int32]] = np.array([0, 1, 2], dtype=np.int32)
D = np.empty(3).view(SubClass)
D = np.ones(3).view(SubClass)

i4.all()
A.all()
Expand Down

0 comments on commit f096789

Please sign in to comment.