| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- import numpy as np
- import numpy.typing as npt
- AR_U: npt.NDArray[np.str_]
- AR_S: npt.NDArray[np.bytes_]
- np.strings.equal(AR_U, AR_S) # E: incompatible type
- np.strings.not_equal(AR_U, AR_S) # E: incompatible type
- np.strings.greater_equal(AR_U, AR_S) # E: incompatible type
- np.strings.less_equal(AR_U, AR_S) # E: incompatible type
- np.strings.greater(AR_U, AR_S) # E: incompatible type
- np.strings.less(AR_U, AR_S) # E: incompatible type
- np.strings.encode(AR_S) # E: incompatible type
- np.strings.decode(AR_U) # E: incompatible type
- np.strings.join(AR_U, b"_") # E: incompatible type
- np.strings.join(AR_S, "_") # E: incompatible type
- np.strings.lstrip(AR_U, b"a") # E: incompatible type
- np.strings.lstrip(AR_S, "a") # E: incompatible type
- np.strings.strip(AR_U, b"a") # E: incompatible type
- np.strings.strip(AR_S, "a") # E: incompatible type
- np.strings.rstrip(AR_U, b"a") # E: incompatible type
- np.strings.rstrip(AR_S, "a") # E: incompatible type
- np.strings.partition(AR_U, b"a") # E: incompatible type
- np.strings.partition(AR_S, "a") # E: incompatible type
- np.strings.rpartition(AR_U, b"a") # E: incompatible type
- np.strings.rpartition(AR_S, "a") # E: incompatible type
- np.strings.count(AR_U, b"a", [1, 2, 3], [1, 2, 3]) # E: incompatible type
- np.strings.count(AR_S, "a", 0, 9) # E: incompatible type
- np.strings.endswith(AR_U, b"a", [1, 2, 3], [1, 2, 3]) # E: incompatible type
- np.strings.endswith(AR_S, "a", 0, 9) # E: incompatible type
- np.strings.startswith(AR_U, b"a", [1, 2, 3], [1, 2, 3]) # E: incompatible type
- np.strings.startswith(AR_S, "a", 0, 9) # E: incompatible type
- np.strings.find(AR_U, b"a", [1, 2, 3], [1, 2, 3]) # E: incompatible type
- np.strings.find(AR_S, "a", 0, 9) # E: incompatible type
- np.strings.rfind(AR_U, b"a", [1, 2, 3], [1, 2 , 3]) # E: incompatible type
- np.strings.rfind(AR_S, "a", 0, 9) # E: incompatible type
- np.strings.index(AR_U, b"a", start=[1, 2, 3]) # E: incompatible type
- np.strings.index(AR_S, "a", end=9) # E: incompatible type
- np.strings.rindex(AR_U, b"a", start=[1, 2, 3]) # E: incompatible type
- np.strings.rindex(AR_S, "a", end=9) # E: incompatible type
- np.strings.isdecimal(AR_S) # E: incompatible type
- np.strings.isnumeric(AR_S) # E: incompatible type
- np.strings.replace(AR_U, b"_", b"-", 10) # E: incompatible type
- np.strings.replace(AR_S, "_", "-", 1) # E: incompatible type
|