Skip to content

Commit 4e968f7

Browse files
committed
Add annotations
1 parent a7fffab commit 4e968f7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/array_api_stubs/_draft/_types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,23 @@
9393
class Info:
9494
"""Namespace returned by `__array_namespace_info__`."""
9595

96+
@staticmethod
9697
def capabilities() -> Capabilities:
9798
...
9899

100+
@staticmethod
99101
def default_device() -> device:
100102
...
101103

104+
@staticmethod
102105
def default_dtypes(*, device: Optional[device]) -> DefaultDataTypes:
103106
...
104107

108+
@staticmethod
105109
def devices() -> List[device]:
106110
...
107111

112+
@staticmethod
108113
def dtypes(
109114
*, device: Optional[device], kind: Optional[Union[str, Tuple[str, ...]]]
110115
) -> DataTypes:

0 commit comments

Comments
 (0)