Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
strings.pyi53 linesDownload Raw Back to fail
1import numpy as np
2import numpy.typing as npt
3
4AR_U: npt.NDArray[np.str_]
5AR_S: npt.NDArray[np.bytes_]
6
7np.strings.equal(AR_U, AR_S)  # type: ignore[arg-type]
8np.strings.not_equal(AR_U, AR_S)  # type: ignore[arg-type]
9
10np.strings.greater_equal(AR_U, AR_S)  # type: ignore[arg-type]
11np.strings.less_equal(AR_U, AR_S)  # type: ignore[arg-type]
12np.strings.greater(AR_U, AR_S)  # type: ignore[arg-type]
13np.strings.less(AR_U, AR_S)  # type: ignore[arg-type]
14
15np.strings.encode(AR_S)  # type: ignore[arg-type]
16np.strings.decode(AR_U)  # type: ignore[arg-type]
17
18np.strings.lstrip(AR_U, b"a")  # type: ignore[arg-type]
19np.strings.lstrip(AR_S, "a")  # type: ignore[arg-type]
20np.strings.strip(AR_U, b"a")  # type: ignore[arg-type]
21np.strings.strip(AR_S, "a")  # type: ignore[arg-type]
22np.strings.rstrip(AR_U, b"a")  # type: ignore[arg-type]
23np.strings.rstrip(AR_S, "a")  # type: ignore[arg-type]
24
25np.strings.partition(AR_U, b"a")  # type: ignore[arg-type]
26np.strings.partition(AR_S, "a")  # type: ignore[arg-type]
27np.strings.rpartition(AR_U, b"a")  # type: ignore[arg-type]
28np.strings.rpartition(AR_S, "a")  # type: ignore[arg-type]
29
30np.strings.count(AR_U, b"a", [1, 2, 3], [1, 2, 3])  # type: ignore[arg-type]
31np.strings.count(AR_S, "a", 0, 9)  # type: ignore[arg-type]
32
33np.strings.endswith(AR_U, b"a", [1, 2, 3], [1, 2, 3])  # type: ignore[arg-type]
34np.strings.endswith(AR_S, "a", 0, 9)  # type: ignore[arg-type]
35np.strings.startswith(AR_U, b"a", [1, 2, 3], [1, 2, 3])  # type: ignore[arg-type]
36np.strings.startswith(AR_S, "a", 0, 9)  # type: ignore[arg-type]
37
38np.strings.find(AR_U, b"a", [1, 2, 3], [1, 2, 3])  # type: ignore[arg-type]
39np.strings.find(AR_S, "a", 0, 9)  # type: ignore[arg-type]
40np.strings.rfind(AR_U, b"a", [1, 2, 3], [1, 2, 3])  # type: ignore[arg-type]
41np.strings.rfind(AR_S, "a", 0, 9)  # type: ignore[arg-type]
42
43np.strings.index(AR_U, b"a", start=[1, 2, 3])  # type: ignore[arg-type]
44np.strings.index(AR_S, "a", end=9)  # type: ignore[arg-type]
45np.strings.rindex(AR_U, b"a", start=[1, 2, 3])  # type: ignore[arg-type]
46np.strings.rindex(AR_S, "a", end=9)  # type: ignore[arg-type]
47
48np.strings.isdecimal(AR_S)  # type: ignore[arg-type]
49np.strings.isnumeric(AR_S)  # type: ignore[arg-type]
50
51np.strings.replace(AR_U, b"_", b"-", 10)  # type: ignore[arg-type]
52np.strings.replace(AR_S, "_", "-", 1)  # type: ignore[arg-type]
53 
codekingpro/portable-devtools · Team Ai