Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/numpy/typing/tests/data/reveal/ |
Upload File : |
import copy import numpy as np nditer_obj: np.nditer with nditer_obj as context: reveal_type(context) # E: numpy.nditer reveal_type(len(nditer_obj)) # E: builtins.int reveal_type(copy.copy(nditer_obj)) # E: numpy.nditer reveal_type(next(nditer_obj)) # E: Any reveal_type(iter(nditer_obj)) # E: typing.Iterator[Any] reveal_type(nditer_obj[1]) # E: Any reveal_type(nditer_obj[1:5]) # E: Any nditer_obj[1] = 1 nditer_obj[1:5] = 1 del nditer_obj[1] del nditer_obj[1:5]