Skip to content

Commit 7ae717c

Browse files
committed
♻️ cleaner string-like type alias in np._core.umath
1 parent 2febc46 commit 7ae717c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/numpy-stubs/_core/umath.pyi

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,7 @@ _UFuncMethod: TypeAlias = L["__call__", "reduce", "reduceat", "accumulate", "out
188188
_TimeLike: TypeAlias = np.datetime64 | np.timedelta64
189189

190190
_SupportsStringLikeArray: TypeAlias = _SupportsArray[np.dtypes.StringDType | np.dtype[np.character]]
191-
_ToCharStringND: TypeAlias = (
192-
_SupportsStringLikeArray
193-
| _NestedSequence[_SupportsStringLikeArray]
194-
| list[str]
195-
| list[bytes]
196-
| _NestedSequence[list[str]]
197-
| _NestedSequence[list[bytes]]
198-
)
191+
_ToCharStringND: TypeAlias = _nt.SequenceND[_SupportsStringLikeArray | list[str] | list[bytes] | list[str | bytes]]
199192

200193
###
201194
# helper protocols

0 commit comments

Comments
 (0)