Skip to content

Commit 258cafb

Browse files
authored
Fix missing dtype attribute in iinfo and finfo
PR-URL: #639 Reviewed-by: Athan Reines <[email protected]>
2 parents b8141b8 + 18b7763 commit 258cafb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: src/array_api_stubs/_2022_12/_types.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ class finfo_object:
3939
max: float
4040
min: float
4141
smallest_normal: float
42-
42+
dtype: dtype
4343

4444
@dataclass
4545
class iinfo_object:
4646
"""Dataclass returned by `iinfo`."""
4747
bits: int
4848
max: int
4949
min: int
50-
50+
dtype: dtype
5151

5252
_T_co = TypeVar("_T_co", covariant=True)
5353

Diff for: src/array_api_stubs/_draft/_types.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ class finfo_object:
3939
max: float
4040
min: float
4141
smallest_normal: float
42-
42+
dtype: dtype
4343

4444
@dataclass
4545
class iinfo_object:
4646
"""Dataclass returned by `iinfo`."""
4747
bits: int
4848
max: int
4949
min: int
50-
50+
dtype: dtype
5151

5252
_T_co = TypeVar("_T_co", covariant=True)
5353

0 commit comments

Comments
 (0)