Skip to content

Commit f82ee47

Browse files
committed
🔧 update _UFunc21String protocol overloads
1 parent b3c7a55 commit f82ee47

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/numpy-stubs/_core/umath.pyi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ class _Call21Float(Protocol):
945945
@type_check_only
946946
class _UFunc21String(Protocol[_ScalarT_co]):
947947
@overload
948-
def __call__(
948+
def __call__( # (scalar, scalar) -> scalar
949949
self,
950950
x1: bytes | str,
951951
x2: bytes | str,
@@ -960,7 +960,7 @@ class _UFunc21String(Protocol[_ScalarT_co]):
960960
signature: str | tuple[DTypeLike, _DTypeLikeBool] | None = None,
961961
) -> _ScalarT_co: ...
962962
@overload
963-
def __call__(
963+
def __call__( # (array, array) -> array
964964
self,
965965
x1: _ToCharStringND,
966966
x2: _ToCharStringND,
@@ -1838,9 +1838,9 @@ add: Final[_ufunc_2_1] = ...
18381838

18391839
_expandtabs: _ufunc_2_1
18401840
_expandtabs_length: _ufunc_2_1
1841-
_lstrip_chars: _ufunc_2_1[_UFunc21String[np.str_]]
1842-
_rstrip_chars: _ufunc_2_1[_UFunc21String[np.str_]]
1843-
_strip_chars: _ufunc_2_1[_UFunc21String[np.str_]]
1841+
_lstrip_chars: _ufunc_2_1[_UFunc21String[Any]]
1842+
_rstrip_chars: _ufunc_2_1[_UFunc21String[Any]]
1843+
_strip_chars: _ufunc_2_1[_UFunc21String[Any]]
18441844
_zfill: _ufunc_2_1
18451845

18461846
###

0 commit comments

Comments
 (0)