Voice et bot modif
This commit is contained in:
parent
189d56026b
commit
7333a22bcd
10774 changed files with 634644 additions and 933308 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -132,6 +132,8 @@ assert_type(np.arange(10, dtype=np.float64), np.ndarray[tuple[int], np.dtype[np.
|
|||
assert_type(np.arange(0, 10, step=2, dtype=np.int16), np.ndarray[tuple[int], np.dtype[np.int16]])
|
||||
assert_type(np.arange(10, dtype=int), np.ndarray[tuple[int], np.dtype[np.int_]])
|
||||
assert_type(np.arange(0, 10, dtype="f8"), np.ndarray[tuple[int], np.dtype])
|
||||
# https://github.com/numpy/numpy/issues/30628
|
||||
assert_type(np.arange("2025-12-20", "2025-12-23", dtype="datetime64[D]"), np.ndarray[tuple[int], np.dtype[np.datetime64[Any]]])
|
||||
|
||||
assert_type(np.require(A), npt.NDArray[np.float64])
|
||||
assert_type(np.require(B), SubClass[np.float64])
|
||||
|
|
|
|||
|
|
@ -24,6 +24,10 @@ f4: np.float32
|
|||
i8: np.int64
|
||||
f: float
|
||||
|
||||
_py_list_1d: list[int]
|
||||
_py_list_2d: list[list[int]]
|
||||
_py_list_3d: list[list[list[int]]]
|
||||
|
||||
# integer‑dtype subclass for argmin/argmax
|
||||
class NDArrayIntSubclass(npt.NDArray[np.intp]): ...
|
||||
AR_sub_i: NDArrayIntSubclass
|
||||
|
|
@ -140,7 +144,10 @@ assert_type(np.shape(b), tuple[()])
|
|||
assert_type(np.shape(f), tuple[()])
|
||||
assert_type(np.shape([1]), tuple[int])
|
||||
assert_type(np.shape([[2]]), tuple[int, int])
|
||||
assert_type(np.shape([[[3]]]), tuple[Any, ...])
|
||||
assert_type(np.shape([[[3]]]), tuple[int, int, int])
|
||||
assert_type(np.shape(_py_list_1d), tuple[int])
|
||||
assert_type(np.shape(_py_list_2d), tuple[int, int])
|
||||
assert_type(np.shape(_py_list_3d), tuple[int, int, int])
|
||||
assert_type(np.shape(AR_b), tuple[Any, ...])
|
||||
assert_type(np.shape(AR_nd), tuple[Any, ...])
|
||||
# these fail on mypy, but it works as expected with pyright/pylance
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ assert_type(np.s_[0:1], slice[int, int, None])
|
|||
assert_type(np.s_[0:1, None:3], tuple[slice[int, int, None], slice[None, int, None]])
|
||||
assert_type(np.s_[0, 0:1, ..., [0, 1, 3]], tuple[Literal[0], slice[int, int, None], EllipsisType, list[int]])
|
||||
|
||||
assert_type(np.ix_(AR_LIKE_b), tuple[npt.NDArray[np.bool], ...])
|
||||
assert_type(np.ix_(AR_LIKE_b), tuple[npt.NDArray[np.intp], ...])
|
||||
assert_type(np.ix_(AR_LIKE_i, AR_LIKE_f), tuple[npt.NDArray[np.float64], ...])
|
||||
assert_type(np.ix_(AR_i8), tuple[npt.NDArray[np.int64], ...])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue