/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/char.pyi (7289B)
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: npt.NDArray[np.str_] AR_S: npt.NDArray[np.bytes_] assert_type(np.char.equal(AR_U, AR_U), npt.NDArray[np.bool_]) assert_type(np.char.equal(AR_S, AR_S), npt.NDArray[np.bool_]) assert_type(np.char.not_equal(AR_U, AR_U), npt.NDArray[np.bool_]) assert_type(np.char.not_equal(AR_S, AR_S), npt.NDArray[np.bool_]) assert_type(np.char.greater_equal(AR_U, AR_U), npt.NDArray[np.bool_]) assert_type(np.char.greater_equal(AR_S, AR_S), npt.NDArray[np.bool_]) assert_type(np.char.less_equal(AR_U, AR_U), npt.NDArray[np.bool_]) assert_type(np.char.less_equal(AR_S, AR_S), npt.NDArray[np.bool_]) assert_type(np.char.greater(AR_U, AR_U), npt.NDArray[np.bool_]) assert_type(np.char.greater(AR_S, AR_S), npt.NDArray[np.bool_]) assert_type(np.char.less(AR_U, AR_U), npt.NDArray[np.bool_]) assert_type(np.char.less(AR_S, AR_S), npt.NDArray[np.bool_]) assert_type(np.char.multiply(AR_U, 5), npt.NDArray[np.str_]) assert_type(np.char.multiply(AR_S, [5, 4, 3]), npt.NDArray[np.bytes_]) assert_type(np.char.mod(AR_U, "test"), npt.NDArray[np.str_]) assert_type(np.char.mod(AR_S, "test"), npt.NDArray[np.bytes_]) assert_type(np.char.capitalize(AR_U), npt.NDArray[np.str_]) assert_type(np.char.capitalize(AR_S), npt.NDArray[np.bytes_]) assert_type(np.char.center(AR_U, 5), npt.NDArray[np.str_]) assert_type(np.char.center(AR_S, [2, 3, 4], b"a"), npt.NDArray[np.bytes_]) assert_type(np.char.encode(AR_U), npt.NDArray[np.bytes_]) assert_type(np.char.decode(AR_S), npt.NDArray[np.str_]) assert_type(np.char.expandtabs(AR_U), npt.NDArray[np.str_]) assert_type(np.char.expandtabs(AR_S, tabsize=4), npt.NDArray[np.bytes_]) assert_type(np.char.join(AR_U, "_"), npt.NDArray[np.str_]) assert_type(np.char.join(AR_S, [b"_", b""]), npt.NDArray[np.bytes_]) assert_type(np.char.ljust(AR_U, 5), npt.NDArray[np.str_]) assert_type(np.char.ljust(AR_S, [4, 3, 1], fillchar=[b"a", b"b", b"c"]), npt.NDArray[np.bytes_]) assert_type(np.char.rjust(AR_U, 5), npt.NDArray[np.str_]) assert_type(np.char.rjust(AR_S, [4, 3, 1], fillchar=[b"a", b"b", b"c"]), npt.NDArray[np.bytes_]) assert_type(np.char.lstrip(AR_U), npt.NDArray[np.str_]) assert_type(np.char.lstrip(AR_S, chars=b"_"), npt.NDArray[np.bytes_]) assert_type(np.char.rstrip(AR_U), npt.NDArray[np.str_]) assert_type(np.char.rstrip(AR_S, chars=b"_"), npt.NDArray[np.bytes_]) assert_type(np.char.strip(AR_U), npt.NDArray[np.str_]) assert_type(np.char.strip(AR_S, chars=b"_"), npt.NDArray[np.bytes_]) assert_type(np.char.partition(AR_U, "\n"), npt.NDArray[np.str_]) assert_type(np.char.partition(AR_S, [b"a", b"b", b"c"]), npt.NDArray[np.bytes_]) assert_type(np.char.rpartition(AR_U, "\n"), npt.NDArray[np.str_]) assert_type(np.char.rpartition(AR_S, [b"a", b"b", b"c"]), npt.NDArray[np.bytes_]) assert_type(np.char.replace(AR_U, "_", "-"), npt.NDArray[np.str_]) assert_type(np.char.replace(AR_S, [b"_", b""], [b"a", b"b"]), npt.NDArray[np.bytes_]) assert_type(np.char.split(AR_U, "_"), npt.NDArray[np.object_]) assert_type(np.char.split(AR_S, maxsplit=[1, 2, 3]), npt.NDArray[np.object_]) assert_type(np.char.rsplit(AR_U, "_"), npt.NDArray[np.object_]) assert_type(np.char.rsplit(AR_S, maxsplit=[1, 2, 3]), npt.NDArray[np.object_]) assert_type(np.char.splitlines(AR_U), npt.NDArray[np.object_]) assert_type(np.char.splitlines(AR_S, keepends=[True, True, False]), npt.NDArray[np.object_]) assert_type(np.char.swapcase(AR_U), npt.NDArray[np.str_]) assert_type(np.char.swapcase(AR_S), npt.NDArray[np.bytes_]) assert_type(np.char.title(AR_U), npt.NDArray[np.str_]) assert_type(np.char.title(AR_S), npt.NDArray[np.bytes_]) assert_type(np.char.upper(AR_U), npt.NDArray[np.str_]) assert_type(np.char.upper(AR_S), npt.NDArray[np.bytes_]) assert_type(np.char.zfill(AR_U, 5), npt.NDArray[np.str_]) assert_type(np.char.zfill(AR_S, [2, 3, 4]), npt.NDArray[np.bytes_]) assert_type(np.char.count(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.int_]) assert_type(np.char.count(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.int_]) assert_type(np.char.endswith(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.bool_]) assert_type(np.char.endswith(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.bool_]) assert_type(np.char.startswith(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.bool_]) assert_type(np.char.startswith(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.bool_]) assert_type(np.char.find(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.int_]) assert_type(np.char.find(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.int_]) assert_type(np.char.rfind(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.int_]) assert_type(np.char.rfind(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.int_]) assert_type(np.char.index(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.int_]) assert_type(np.char.index(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.int_]) assert_type(np.char.rindex(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.int_]) assert_type(np.char.rindex(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.int_]) assert_type(np.char.isalpha(AR_U), npt.NDArray[np.bool_]) assert_type(np.char.isalpha(AR_S), npt.NDArray[np.bool_]) assert_type(np.char.isalnum(AR_U), npt.NDArray[np.bool_]) assert_type(np.char.isalnum(AR_S), npt.NDArray[np.bool_]) assert_type(np.char.isdecimal(AR_U), npt.NDArray[np.bool_]) assert_type(np.char.isdecimal(AR_S), npt.NDArray[np.bool_]) assert_type(np.char.isdigit(AR_U), npt.NDArray[np.bool_]) assert_type(np.char.isdigit(AR_S), npt.NDArray[np.bool_]) assert_type(np.char.islower(AR_U), npt.NDArray[np.bool_]) assert_type(np.char.islower(AR_S), npt.NDArray[np.bool_]) assert_type(np.char.isnumeric(AR_U), npt.NDArray[np.bool_]) assert_type(np.char.isnumeric(AR_S), npt.NDArray[np.bool_]) assert_type(np.char.isspace(AR_U), npt.NDArray[np.bool_]) assert_type(np.char.isspace(AR_S), npt.NDArray[np.bool_]) assert_type(np.char.istitle(AR_U), npt.NDArray[np.bool_]) assert_type(np.char.istitle(AR_S), npt.NDArray[np.bool_]) assert_type(np.char.isupper(AR_U), npt.NDArray[np.bool_]) assert_type(np.char.isupper(AR_S), npt.NDArray[np.bool_]) assert_type(np.char.str_len(AR_U), npt.NDArray[np.int_]) assert_type(np.char.str_len(AR_S), npt.NDArray[np.int_]) assert_type(np.char.array(AR_U), np.chararray[Any, np.dtype[np.str_]]) assert_type(np.char.array(AR_S, order="K"), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(np.char.array("bob", copy=True), np.chararray[Any, np.dtype[np.str_]]) assert_type(np.char.array(b"bob", itemsize=5), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(np.char.array(1, unicode=False), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(np.char.array(1, unicode=True), np.chararray[Any, np.dtype[np.str_]]) assert_type(np.char.asarray(AR_U), np.chararray[Any, np.dtype[np.str_]]) assert_type(np.char.asarray(AR_S, order="K"), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(np.char.asarray("bob"), np.chararray[Any, np.dtype[np.str_]]) assert_type(np.char.asarray(b"bob", itemsize=5), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(np.char.asarray(1, unicode=False), np.chararray[Any, np.dtype[np.bytes_]]) assert_type(np.char.asarray(1, unicode=True), np.chararray[Any, np.dtype[np.str_]])