/opt/imh-python/lib/python3.9/site-packages/numpy/typing/tests/data/reveal
NameSizeModeActions
arithmetic.pyi197650644editdlrm
arraypad.pyi7760644editdlrm
arrayprint.pyi8760644editdlrm
arraysetops.pyi41550644editdlrm
arrayterator.pyi11110644editdlrm
array_constructors.pyi106000644editdlrm
bitwise_ops.pyi39190644editdlrm
char.pyi72890644editdlrm
chararray.pyi60930644editdlrm
comparisons.pyi74680644editdlrm
constants.pyi19490644editdlrm
ctypeslib.pyi47270644editdlrm
datasource.pyi6710644editdlrm
dtype.pyi28720644editdlrm
einsumfunc.pyi20440644editdlrm
emath.pyi24230644editdlrm
false_positives.pyi4820644editdlrm
fft.pyi17490644editdlrm
flatiter.pyi8820644editdlrm
fromnumeric.pyi121010644editdlrm
getlimits.pyi15920644editdlrm
histograms.pyi13030644editdlrm
index_tricks.pyi31770644editdlrm
lib_function_base.pyi83180644editdlrm
lib_polynomial.pyi59860644editdlrm
lib_utils.pyi10490644editdlrm
lib_version.pyi6720644editdlrm
linalg.pyi48770644editdlrm
matrix.pyi29220644editdlrm
memmap.pyi8420644editdlrm
mod.pyi56660644editdlrm
modules.pyi19580644editdlrm
multiarray.pyi53260644editdlrm
nbit_base_example.pyi6570644editdlrm
ndarray_conversion.pyi17910644editdlrm
ndarray_misc.pyi71260644editdlrm
ndarray_shape_manipulation.pyi12330644editdlrm
nditer.pyi20210644editdlrm
nested_sequence.pyi7340644editdlrm
npyio.pyi42090644editdlrm
numeric.pyi61600644editdlrm
numerictypes.pyi24870644editdlrm
random.pyi1040910644editdlrm
rec.pyi38580644editdlrm
scalars.pyi47900644editdlrm
shape_base.pyi24270644editdlrm
stride_tricks.pyi15420644editdlrm
testing.pyi86110644editdlrm
twodim_base.pyi31320644editdlrm
type_check.pyi30440644editdlrm
ufunclike.pyi13290644editdlrm
ufuncs.pyi27980644editdlrm
ufunc_config.pyi13270644editdlrm
warnings_and_errors.pyi5380644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/numpy/typing/tests/data/reveal/chararray.pyi (6093B)
import sys from typing import Any import numpy as np import numpy.typing as npt if sys.version_info >= (3, 11): from typing import assert_type else: from typing_extensions import assert_type AR_U: np.chararray[Any, np.dtype[np.str_]] AR_S: np.chararray[Any, np.dtype[np.bytes_]] assert_type(AR_U == AR_U, npt.NDArray[np.bool_]) assert_type(AR_S == AR_S, npt.NDArray[np.bool_]) assert_type(AR_U != AR_U, npt.NDArray[np.bool_]) assert_type(AR_S != AR_S, npt.NDArray[np.bool_]) assert_type(AR_U >= AR_U, npt.NDArray[np.bool_]) assert_type(AR_S >= AR_S, npt.NDArray[np.bool_]) assert_type(AR_U <= AR_U, npt.NDArray[np.bool_]) assert_type(AR_S <= AR_S, npt.NDArray[np.bool_]) assert_type(AR_U > AR_U, npt.NDArray[np.bool_]) assert_type(AR_S > AR_S, npt.NDArray[np.bool_]) assert_type(AR_U < AR_U, npt.NDArray[np.bool_]) assert_type(AR_S < AR_S, npt.NDArray[np.bool_]) assert_type(AR_U * 5, np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S * [5], np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U % "test", np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S % b"test", np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.capitalize(), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S.capitalize(), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.center(5), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S.center([2, 3, 4], b"a"), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.encode(), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_S.decode(), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_U.expandtabs(), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S.expandtabs(tabsize=4), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.join("_"), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S.join([b"_", b""]), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.ljust(5), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S.ljust([4, 3, 1], fillchar=[b"a", b"b", b"c"]), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.rjust(5), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S.rjust([4, 3, 1], fillchar=[b"a", b"b", b"c"]), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.lstrip(), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S.lstrip(chars=b"_"), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.rstrip(), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S.rstrip(chars=b"_"), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.strip(), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S.strip(chars=b"_"), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.partition("\n"), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S.partition([b"a", b"b", b"c"]), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.rpartition("\n"), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S.rpartition([b"a", b"b", b"c"]), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.replace("_", "-"), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S.replace([b"_", b""], [b"a", b"b"]), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.split("_"), npt.NDArray[np.object_]) assert_type(AR_S.split(maxsplit=[1, 2, 3]), npt.NDArray[np.object_]) assert_type(AR_U.rsplit("_"), npt.NDArray[np.object_]) assert_type(AR_S.rsplit(maxsplit=[1, 2, 3]), npt.NDArray[np.object_]) assert_type(AR_U.splitlines(), npt.NDArray[np.object_]) assert_type(AR_S.splitlines(keepends=[True, True, False]), npt.NDArray[np.object_]) assert_type(AR_U.swapcase(), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S.swapcase(), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.title(), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S.title(), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.upper(), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S.upper(), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.zfill(5), np.chararray[Any, np.dtype[np.str_]]) assert_type(AR_S.zfill([2, 3, 4]), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(AR_U.count("a", start=[1, 2, 3]), npt.NDArray[np.int_]) assert_type(AR_S.count([b"a", b"b", b"c"], end=9), npt.NDArray[np.int_]) assert_type(AR_U.endswith("a", start=[1, 2, 3]), npt.NDArray[np.bool_]) assert_type(AR_S.endswith([b"a", b"b", b"c"], end=9), npt.NDArray[np.bool_]) assert_type(AR_U.startswith("a", start=[1, 2, 3]), npt.NDArray[np.bool_]) assert_type(AR_S.startswith([b"a", b"b", b"c"], end=9), npt.NDArray[np.bool_]) assert_type(AR_U.find("a", start=[1, 2, 3]), npt.NDArray[np.int_]) assert_type(AR_S.find([b"a", b"b", b"c"], end=9), npt.NDArray[np.int_]) assert_type(AR_U.rfind("a", start=[1, 2, 3]), npt.NDArray[np.int_]) assert_type(AR_S.rfind([b"a", b"b", b"c"], end=9), npt.NDArray[np.int_]) assert_type(AR_U.index("a", start=[1, 2, 3]), npt.NDArray[np.int_]) assert_type(AR_S.index([b"a", b"b", b"c"], end=9), npt.NDArray[np.int_]) assert_type(AR_U.rindex("a", start=[1, 2, 3]), npt.NDArray[np.int_]) assert_type(AR_S.rindex([b"a", b"b", b"c"], end=9), npt.NDArray[np.int_]) assert_type(AR_U.isalpha(), npt.NDArray[np.bool_]) assert_type(AR_S.isalpha(), npt.NDArray[np.bool_]) assert_type(AR_U.isalnum(), npt.NDArray[np.bool_]) assert_type(AR_S.isalnum(), npt.NDArray[np.bool_]) assert_type(AR_U.isdecimal(), npt.NDArray[np.bool_]) assert_type(AR_S.isdecimal(), npt.NDArray[np.bool_]) assert_type(AR_U.isdigit(), npt.NDArray[np.bool_]) assert_type(AR_S.isdigit(), npt.NDArray[np.bool_]) assert_type(AR_U.islower(), npt.NDArray[np.bool_]) assert_type(AR_S.islower(), npt.NDArray[np.bool_]) assert_type(AR_U.isnumeric(), npt.NDArray[np.bool_]) assert_type(AR_S.isnumeric(), npt.NDArray[np.bool_]) assert_type(AR_U.isspace(), npt.NDArray[np.bool_]) assert_type(AR_S.isspace(), npt.NDArray[np.bool_]) assert_type(AR_U.istitle(), npt.NDArray[np.bool_]) assert_type(AR_S.istitle(), npt.NDArray[np.bool_]) assert_type(AR_U.isupper(), npt.NDArray[np.bool_]) assert_type(AR_S.isupper(), npt.NDArray[np.bool_]) assert_type(AR_U.__array_finalize__(object()), None) assert_type(AR_S.__array_finalize__(object()), None)