Skip to content

Commit

Permalink
Add smallest_normal to the array API finfo
Browse files Browse the repository at this point in the history
This was blocked on numpy#18536, which has been merged.
  • Loading branch information
asmeurer committed Aug 12, 2021
1 parent d5956c1 commit 90537b5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions numpy/array_api/_data_type_functions.py
Expand Up @@ -60,10 +60,7 @@ class finfo_object:
eps: float
max: float
min: float
# Note: smallest_normal is part of the array API spec, but cannot be used
# until https://github.com/numpy/numpy/pull/18536 is merged.

# smallest_normal: float
smallest_normal: float


@dataclass
Expand All @@ -87,8 +84,7 @@ def finfo(type: Union[Dtype, Array], /) -> finfo_object:
float(fi.eps),
float(fi.max),
float(fi.min),
# TODO: Uncomment this when #18536 is merged.
# float(fi.smallest_normal),
float(fi.smallest_normal),
)


Expand Down

0 comments on commit 90537b5

Please sign in to comment.