$20 GRAYBYTE WORDPRESS FILE MANAGER $22

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal//char.pyi
import numpy as np
import numpy.typing as npt
from collections.abc import Sequence

AR_U: npt.NDArray[np.str_]
AR_S: npt.NDArray[np.bytes_]

reveal_type(np.char.equal(AR_U, AR_U))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.equal(AR_S, AR_S))  # E: ndarray[Any, dtype[bool_]]

reveal_type(np.char.not_equal(AR_U, AR_U))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.not_equal(AR_S, AR_S))  # E: ndarray[Any, dtype[bool_]]

reveal_type(np.char.greater_equal(AR_U, AR_U))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.greater_equal(AR_S, AR_S))  # E: ndarray[Any, dtype[bool_]]

reveal_type(np.char.less_equal(AR_U, AR_U))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.less_equal(AR_S, AR_S))  # E: ndarray[Any, dtype[bool_]]

reveal_type(np.char.greater(AR_U, AR_U))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.greater(AR_S, AR_S))  # E: ndarray[Any, dtype[bool_]]

reveal_type(np.char.less(AR_U, AR_U))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.less(AR_S, AR_S))  # E: ndarray[Any, dtype[bool_]]

reveal_type(np.char.multiply(AR_U, 5))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.multiply(AR_S, [5, 4, 3]))  # E: ndarray[Any, dtype[bytes_]]

reveal_type(np.char.mod(AR_U, "test"))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.mod(AR_S, "test"))  # E: ndarray[Any, dtype[bytes_]]

reveal_type(np.char.capitalize(AR_U))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.capitalize(AR_S))  # E: ndarray[Any, dtype[bytes_]]

reveal_type(np.char.center(AR_U, 5))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.center(AR_S, [2, 3, 4], b"a"))  # E: ndarray[Any, dtype[bytes_]]

reveal_type(np.char.encode(AR_U))  # E: ndarray[Any, dtype[bytes_]]
reveal_type(np.char.decode(AR_S))  # E: ndarray[Any, dtype[str_]]

reveal_type(np.char.expandtabs(AR_U))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.expandtabs(AR_S, tabsize=4))  # E: ndarray[Any, dtype[bytes_]]

reveal_type(np.char.join(AR_U, "_"))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.join(AR_S, [b"_", b""]))  # E: ndarray[Any, dtype[bytes_]]

reveal_type(np.char.ljust(AR_U, 5))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.ljust(AR_S, [4, 3, 1], fillchar=[b"a", b"b", b"c"]))  # E: ndarray[Any, dtype[bytes_]]
reveal_type(np.char.rjust(AR_U, 5))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.rjust(AR_S, [4, 3, 1], fillchar=[b"a", b"b", b"c"]))  # E: ndarray[Any, dtype[bytes_]]

reveal_type(np.char.lstrip(AR_U))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.lstrip(AR_S, chars=b"_"))  # E: ndarray[Any, dtype[bytes_]]
reveal_type(np.char.rstrip(AR_U))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.rstrip(AR_S, chars=b"_"))  # E: ndarray[Any, dtype[bytes_]]
reveal_type(np.char.strip(AR_U))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.strip(AR_S, chars=b"_"))  # E: ndarray[Any, dtype[bytes_]]

reveal_type(np.char.partition(AR_U, "\n"))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.partition(AR_S, [b"a", b"b", b"c"]))  # E: ndarray[Any, dtype[bytes_]]
reveal_type(np.char.rpartition(AR_U, "\n"))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.rpartition(AR_S, [b"a", b"b", b"c"]))  # E: ndarray[Any, dtype[bytes_]]

reveal_type(np.char.replace(AR_U, "_", "-"))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.replace(AR_S, [b"_", b""], [b"a", b"b"]))  # E: ndarray[Any, dtype[bytes_]]

reveal_type(np.char.split(AR_U, "_"))  # E: ndarray[Any, dtype[object_]]
reveal_type(np.char.split(AR_S, maxsplit=[1, 2, 3]))  # E: ndarray[Any, dtype[object_]]
reveal_type(np.char.rsplit(AR_U, "_"))  # E: ndarray[Any, dtype[object_]]
reveal_type(np.char.rsplit(AR_S, maxsplit=[1, 2, 3]))  # E: ndarray[Any, dtype[object_]]

reveal_type(np.char.splitlines(AR_U))  # E: ndarray[Any, dtype[object_]]
reveal_type(np.char.splitlines(AR_S, keepends=[True, True, False]))  # E: ndarray[Any, dtype[object_]]

reveal_type(np.char.swapcase(AR_U))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.swapcase(AR_S))  # E: ndarray[Any, dtype[bytes_]]

reveal_type(np.char.title(AR_U))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.title(AR_S))  # E: ndarray[Any, dtype[bytes_]]

reveal_type(np.char.upper(AR_U))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.upper(AR_S))  # E: ndarray[Any, dtype[bytes_]]

reveal_type(np.char.zfill(AR_U, 5))  # E: ndarray[Any, dtype[str_]]
reveal_type(np.char.zfill(AR_S, [2, 3, 4]))  # E: ndarray[Any, dtype[bytes_]]

reveal_type(np.char.count(AR_U, "a", start=[1, 2, 3]))  # E: ndarray[Any, dtype[{int_}]]
reveal_type(np.char.count(AR_S, [b"a", b"b", b"c"], end=9))  # E: ndarray[Any, dtype[{int_}]]

reveal_type(np.char.endswith(AR_U, "a", start=[1, 2, 3]))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.endswith(AR_S, [b"a", b"b", b"c"], end=9))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.startswith(AR_U, "a", start=[1, 2, 3]))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.startswith(AR_S, [b"a", b"b", b"c"], end=9))  # E: ndarray[Any, dtype[bool_]]

reveal_type(np.char.find(AR_U, "a", start=[1, 2, 3]))  # E: ndarray[Any, dtype[{int_}]]
reveal_type(np.char.find(AR_S, [b"a", b"b", b"c"], end=9))  # E: ndarray[Any, dtype[{int_}]]
reveal_type(np.char.rfind(AR_U, "a", start=[1, 2, 3]))  # E: ndarray[Any, dtype[{int_}]]
reveal_type(np.char.rfind(AR_S, [b"a", b"b", b"c"], end=9))  # E: ndarray[Any, dtype[{int_}]]

reveal_type(np.char.index(AR_U, "a", start=[1, 2, 3]))  # E: ndarray[Any, dtype[{int_}]]
reveal_type(np.char.index(AR_S, [b"a", b"b", b"c"], end=9))  # E: ndarray[Any, dtype[{int_}]]
reveal_type(np.char.rindex(AR_U, "a", start=[1, 2, 3]))  # E: ndarray[Any, dtype[{int_}]]
reveal_type(np.char.rindex(AR_S, [b"a", b"b", b"c"], end=9))  # E: ndarray[Any, dtype[{int_}]]

reveal_type(np.char.isalpha(AR_U))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.isalpha(AR_S))  # E: ndarray[Any, dtype[bool_]]

reveal_type(np.char.isalnum(AR_U))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.isalnum(AR_S))  # E: ndarray[Any, dtype[bool_]]

reveal_type(np.char.isdecimal(AR_U))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.isdecimal(AR_S))  # E: ndarray[Any, dtype[bool_]]

reveal_type(np.char.isdigit(AR_U))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.isdigit(AR_S))  # E: ndarray[Any, dtype[bool_]]

reveal_type(np.char.islower(AR_U))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.islower(AR_S))  # E: ndarray[Any, dtype[bool_]]

reveal_type(np.char.isnumeric(AR_U))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.isnumeric(AR_S))  # E: ndarray[Any, dtype[bool_]]

reveal_type(np.char.isspace(AR_U))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.isspace(AR_S))  # E: ndarray[Any, dtype[bool_]]

reveal_type(np.char.istitle(AR_U))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.istitle(AR_S))  # E: ndarray[Any, dtype[bool_]]

reveal_type(np.char.isupper(AR_U))  # E: ndarray[Any, dtype[bool_]]
reveal_type(np.char.isupper(AR_S))  # E: ndarray[Any, dtype[bool_]]

reveal_type(np.char.str_len(AR_U))  # E: ndarray[Any, dtype[{int_}]]
reveal_type(np.char.str_len(AR_S))  # E: ndarray[Any, dtype[{int_}]]

reveal_type(np.char.array(AR_U))  # E: chararray[Any, dtype[str_]]
reveal_type(np.char.array(AR_S, order="K"))  # E: chararray[Any, dtype[bytes_]]
reveal_type(np.char.array("bob", copy=True))  # E: chararray[Any, dtype[str_]]
reveal_type(np.char.array(b"bob", itemsize=5))  # E: chararray[Any, dtype[bytes_]]
reveal_type(np.char.array(1, unicode=False))  # E: chararray[Any, dtype[bytes_]]
reveal_type(np.char.array(1, unicode=True))  # E: chararray[Any, dtype[str_]]

reveal_type(np.char.asarray(AR_U))  # E: chararray[Any, dtype[str_]]
reveal_type(np.char.asarray(AR_S, order="K"))  # E: chararray[Any, dtype[bytes_]]
reveal_type(np.char.asarray("bob"))  # E: chararray[Any, dtype[str_]]
reveal_type(np.char.asarray(b"bob", itemsize=5))  # E: chararray[Any, dtype[bytes_]]
reveal_type(np.char.asarray(1, unicode=False))  # E: chararray[Any, dtype[bytes_]]
reveal_type(np.char.asarray(1, unicode=True))  # E: chararray[Any, dtype[str_]]

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
14 Aug 2025 9.24 PM
root / root
0755
arithmetic.pyi
20.317 KB
17 Apr 2025 8.10 PM
root / root
0644
array_constructors.pyi
11.554 KB
17 Apr 2025 8.10 PM
root / root
0644
arraypad.pyi
0.678 KB
17 Apr 2025 8.10 PM
root / root
0644
arrayprint.pyi
0.67 KB
17 Apr 2025 8.10 PM
root / root
0644
arraysetops.pyi
4.562 KB
17 Apr 2025 8.10 PM
root / root
0644
arrayterator.pyi
1.102 KB
17 Apr 2025 8.10 PM
root / root
0644
bitwise_ops.pyi
3.522 KB
17 Apr 2025 8.10 PM
root / root
0644
char.pyi
7.858 KB
17 Apr 2025 8.10 PM
root / root
0644
chararray.pyi
6.164 KB
17 Apr 2025 8.10 PM
root / root
0644
comparisons.pyi
7.83 KB
17 Apr 2025 8.10 PM
root / root
0644
constants.pyi
1.895 KB
17 Apr 2025 8.10 PM
root / root
0644
ctypeslib.pyi
4.987 KB
17 Apr 2025 8.10 PM
root / root
0644
datasource.pyi
0.544 KB
17 Apr 2025 8.10 PM
root / root
0644
dtype.pyi
2.722 KB
17 Apr 2025 8.10 PM
root / root
0644
einsumfunc.pyi
2.122 KB
17 Apr 2025 8.10 PM
root / root
0644
emath.pyi
2.479 KB
17 Apr 2025 8.10 PM
root / root
0644
false_positives.pyi
0.341 KB
17 Apr 2025 8.10 PM
root / root
0644
fft.pyi
1.809 KB
17 Apr 2025 8.10 PM
root / root
0644
flatiter.pyi
0.8 KB
17 Apr 2025 8.10 PM
root / root
0644
fromnumeric.pyi
13.312 KB
17 Apr 2025 8.10 PM
root / root
0644
getlimits.pyi
1.511 KB
17 Apr 2025 8.10 PM
root / root
0644
histograms.pyi
1.358 KB
17 Apr 2025 8.10 PM
root / root
0644
index_tricks.pyi
3.399 KB
17 Apr 2025 8.10 PM
root / root
0644
lib_function_base.pyi
8.926 KB
17 Apr 2025 8.10 PM
root / root
0644
lib_polynomial.pyi
6.204 KB
17 Apr 2025 8.10 PM
root / root
0644
lib_utils.pyi
0.896 KB
17 Apr 2025 8.10 PM
root / root
0644
lib_version.pyi
0.591 KB
17 Apr 2025 8.10 PM
root / root
0644
linalg.pyi
5.095 KB
17 Apr 2025 8.10 PM
root / root
0644
matrix.pyi
2.962 KB
17 Apr 2025 8.10 PM
root / root
0644
memmap.pyi
0.737 KB
17 Apr 2025 8.10 PM
root / root
0644
mod.pyi
5.849 KB
17 Apr 2025 8.10 PM
root / root
0644
modules.pyi
1.947 KB
17 Apr 2025 8.10 PM
root / root
0644
multiarray.pyi
5.537 KB
17 Apr 2025 8.10 PM
root / root
0644
nbit_base_example.pyi
0.488 KB
17 Apr 2025 8.10 PM
root / root
0644
ndarray_conversion.pyi
1.868 KB
17 Apr 2025 8.10 PM
root / root
0644
ndarray_misc.pyi
7.614 KB
17 Apr 2025 8.10 PM
root / root
0644
ndarray_shape_manipulation.pyi
0.883 KB
17 Apr 2025 8.10 PM
root / root
0644
nditer.pyi
2.019 KB
17 Apr 2025 8.10 PM
root / root
0644
nested_sequence.pyi
0.633 KB
17 Apr 2025 8.10 PM
root / root
0644
npyio.pyi
4.33 KB
17 Apr 2025 8.10 PM
root / root
0644
numeric.pyi
6.643 KB
17 Apr 2025 8.10 PM
root / root
0644
numerictypes.pyi
1.671 KB
17 Apr 2025 8.10 PM
root / root
0644
random.pyi
126.475 KB
17 Apr 2025 8.10 PM
root / root
0644
rec.pyi
3.301 KB
17 Apr 2025 8.10 PM
root / root
0644
scalars.pyi
5.222 KB
17 Apr 2025 8.10 PM
root / root
0644
shape_base.pyi
2.57 KB
17 Apr 2025 8.10 PM
root / root
0644
stride_tricks.pyi
1.526 KB
17 Apr 2025 8.10 PM
root / root
0644
testing.pyi
8.669 KB
17 Apr 2025 8.10 PM
root / root
0644
twodim_base.pyi
3.249 KB
17 Apr 2025 8.10 PM
root / root
0644
type_check.pyi
2.96 KB
17 Apr 2025 8.10 PM
root / root
0644
ufunc_config.pyi
1.273 KB
17 Apr 2025 8.10 PM
root / root
0644
ufunclike.pyi
1.288 KB
17 Apr 2025 8.10 PM
root / root
0644
ufuncs.pyi
2.851 KB
17 Apr 2025 8.10 PM
root / root
0644
version.pyi
0.306 KB
17 Apr 2025 8.10 PM
root / root
0644
warnings_and_errors.pyi
0.41 KB
17 Apr 2025 8.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF