PHP 8.2.30
Preview: chararray.pyi Size: 2.24 KB
//opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/typing/tests/data/fail/chararray.pyi

import numpy as np
from typing import Any

AR_U: np.chararray[Any, np.dtype[np.str_]]
AR_S: np.chararray[Any, np.dtype[np.bytes_]]

AR_S.encode()  # E: Invalid self argument
AR_U.decode()  # E: Invalid self argument

AR_U.join(b"_")  # E: incompatible type
AR_S.join("_")  # E: incompatible type

AR_U.ljust(5, fillchar=b"a")  # E: incompatible type
AR_S.ljust(5, fillchar="a")  # E: incompatible type
AR_U.rjust(5, fillchar=b"a")  # E: incompatible type
AR_S.rjust(5, fillchar="a")  # E: incompatible type

AR_U.lstrip(chars=b"a")  # E: incompatible type
AR_S.lstrip(chars="a")  # E: incompatible type
AR_U.strip(chars=b"a")  # E: incompatible type
AR_S.strip(chars="a")  # E: incompatible type
AR_U.rstrip(chars=b"a")  # E: incompatible type
AR_S.rstrip(chars="a")  # E: incompatible type

AR_U.partition(b"a")  # E: incompatible type
AR_S.partition("a")  # E: incompatible type
AR_U.rpartition(b"a")  # E: incompatible type
AR_S.rpartition("a")  # E: incompatible type

AR_U.replace(b"_", b"-")  # E: incompatible type
AR_S.replace("_", "-")  # E: incompatible type

AR_U.split(b"_")  # E: incompatible type
AR_S.split("_")  # E: incompatible type
AR_S.split(1)  # E: incompatible type
AR_U.rsplit(b"_")  # E: incompatible type
AR_S.rsplit("_")  # E: incompatible type

AR_U.count(b"a", start=[1, 2, 3])  # E: incompatible type
AR_S.count("a", end=9)  # E: incompatible type

AR_U.endswith(b"a", start=[1, 2, 3])  # E: incompatible type
AR_S.endswith("a", end=9)  # E: incompatible type
AR_U.startswith(b"a", start=[1, 2, 3])  # E: incompatible type
AR_S.startswith("a", end=9)  # E: incompatible type

AR_U.find(b"a", start=[1, 2, 3])  # E: incompatible type
AR_S.find("a", end=9)  # E: incompatible type
AR_U.rfind(b"a", start=[1, 2, 3])  # E: incompatible type
AR_S.rfind("a", end=9)  # E: incompatible type

AR_U.index(b"a", start=[1, 2, 3])  # E: incompatible type
AR_S.index("a", end=9)  # E: incompatible type
AR_U.rindex(b"a", start=[1, 2, 3])  # E: incompatible type
AR_S.rindex("a", end=9)  # E: incompatible type

AR_U == AR_S  # E: Unsupported operand types
AR_U != AR_S  # E: Unsupported operand types
AR_U >= AR_S  # E: Unsupported operand types
AR_U <= AR_S  # E: Unsupported operand types
AR_U > AR_S  # E: Unsupported operand types
AR_U < AR_S  # E: Unsupported operand types

Directory Contents

Dirs: 0 × Files: 45

Name Size Perms Modified Actions
3.76 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
549 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
480 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.06 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
455 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
132 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
515 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
2.55 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
2.24 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
888 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
286 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
395 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
334 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
539 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
366 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
843 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
5.46 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
367 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
509 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
2.03 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
913 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
276 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
158 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.29 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
159 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
652 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.65 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
405 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.34 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
325 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
427 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
780 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
276 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
2.76 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
704 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
2.88 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
152 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
315 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.34 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
899 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
379 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
679 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.32 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
733 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
174 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).