Skip to content

Commit b3b7bb6

Browse files
authored
Merge pull request #485 from honno/finfo-dtype-attr
`iinfo()` and `finfo()` result holds `dtype` attribute
2 parents 309d191 + 7f15301 commit b3b7bb6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: spec/API_specification/array_api/data_type_functions.py

+8
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ def finfo(type: Union[dtype, array], /) -> finfo_object:
8080
- **smallest_normal**: *float*
8181
8282
smallest positive real-valued floating-point number with full precision.
83+
84+
- **dtype**: dtype
85+
86+
real-valued floating-point data type.
8387
"""
8488

8589
def iinfo(type: Union[dtype, array], /) -> iinfo_object:
@@ -107,6 +111,10 @@ def iinfo(type: Union[dtype, array], /) -> iinfo_object:
107111
- **min**: *int*
108112
109113
smallest representable number.
114+
115+
- **dtype**: dtype
116+
117+
integer data type.
110118
"""
111119

112120
def result_type(*arrays_and_dtypes: Union[array, dtype]) -> dtype:

0 commit comments

Comments
 (0)