Skip to content

Commit

Permalink
fix: export array
Browse files Browse the repository at this point in the history
  • Loading branch information
34j committed Nov 24, 2024
1 parent e4673de commit ac20ed5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion spec/draft/API_specification/array_object.rst
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Methods
Array.__abs__
Array.__add__
Array.__and__
Array.__Array_namespace__
Array.__array_namespace__
Array.__bool__
Array.__complex__
Array.__dlpack__
Expand Down
5 changes: 3 additions & 2 deletions src/array_api_stubs/_draft/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"Union",
"Sequence",
"array",
"Array",
"device",
"dtype",
"ellipsis",
Expand Down Expand Up @@ -46,7 +47,7 @@
from enum import Enum
from .data_types import DType

array = TypeVar("array", bound="_array")
array = TypeVar("array", bound="Array")
device = TypeVar("device")
dtype = TypeVar("dtype", bound=DType)
device_ = TypeVar("device_") # only used in this file
Expand Down Expand Up @@ -149,7 +150,7 @@ def dtypes(
)


class _array(Protocol[array, dtype_, device_, PyCapsule]): # type: ignore
class Array(Protocol[array, dtype_, device_, PyCapsule]): # type: ignore
def __init__(self: array) -> None:
"""Initialize the attributes for the array object class."""

Expand Down
4 changes: 2 additions & 2 deletions src/array_api_stubs/_draft/array_object.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from ._types import array
from ._types import array, Array

__all__ = ["array"]
__all__ = ["array", "Array"]

0 comments on commit ac20ed5

Please sign in to comment.