Skip to content

Commit 4c11cc6

Browse files
committed
TYP: Annotate _ArrayOrScalarCommon.__array_struct__ as CapsuleType
1 parent e820e2b commit 4c11cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@ class _ArrayOrScalarCommon:
14231423
@property
14241424
def __array_priority__(self) -> float: ...
14251425
@property
1426-
def __array_struct__(self) -> Any: ... # builtins.PyCapsule
1426+
def __array_struct__(self) -> CapsuleType: ... # builtins.PyCapsule
14271427
def __array_namespace__(self, /, *, api_version: _ArrayAPIVersion | None = None) -> ModuleType: ...
14281428
def __setstate__(self, state: tuple[
14291429
SupportsIndex, # version

0 commit comments

Comments
 (0)