Skip to content

Commit 06b7ad2

Browse files
jorenhamcharris
authored andcommitted
TYP: void: accept any dtype: str in constructor calls (#32928)
1 parent c7bcd2c commit 06b7ad2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎numpy/__init__.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7393,7 +7393,7 @@ class void(flexible[bytes | tuple[Any, ...]]): # type: ignore[misc]
73937393
@overload
73947394
def __new__(cls, length_or_data: _IntLike_co | bytes, /, dtype: None = None) -> Self: ...
73957395
@overload
7396-
def __new__(cls, length_or_data: object, /, dtype: _DTypeLikeVoid) -> Self: ...
7396+
def __new__(cls, length_or_data: object, /, dtype: _DTypeLikeVoid | str) -> Self: ...
73977397

73987398
#
73997399
@overload

0 commit comments

Comments
 (0)