Skip to content

Commit 4817784

Browse files
committed
Make the array API constants Python floats
1 parent 533d046 commit 4817784

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

numpy/_array_api/_constants.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
from ._array_object import ndarray
2-
from ._dtypes import float64
3-
41
import numpy as np
52

6-
e = ndarray._new(np.array(np.e, dtype=float64))
7-
inf = ndarray._new(np.array(np.inf, dtype=float64))
8-
nan = ndarray._new(np.array(np.nan, dtype=float64))
9-
pi = ndarray._new(np.array(np.pi, dtype=float64))
3+
e = np.e
4+
inf = np.inf
5+
nan = np.nan
6+
pi = np.pi

0 commit comments

Comments
 (0)