Skip to content

Commit

Permalink
fix Sphinx complaint about Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
rgommers committed Feb 13, 2024
1 parent 65ca5bd commit a7f8d22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/array_api_stubs/_draft/array_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def __dlpack__(
*,
stream: Optional[Union[int, Any]] = None,
max_version: Optional[tuple[int, int]] = None,
dl_device: Optional[Tuple[Enum, int]] = None,
dl_device: Optional[tuple[Enum, int]] = None,
copy: Optional[bool] = None,
) -> PyCapsule:
"""
Expand Down Expand Up @@ -347,7 +347,7 @@ def __dlpack__(
if it does support that), or of a different version.
This means the consumer must verify the version even when
`max_version` is passed.
dl_device: Optional[Tuple[Enum, int]]
dl_device: Optional[tuple[enum.Enum, int]]
the DLPack device type. Default is ``None``, meaning the exported capsule
should be on the same device as ``self`` is. When specified, the format
must be a 2-tuple, following that of the return value of :meth:`array.__dlpack_device__`.
Expand Down

0 comments on commit a7f8d22

Please sign in to comment.