Skip to content

Commit b5f7e02

Browse files
committed
Some code reviewes
1 parent 8cce9f2 commit b5f7e02

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/array_api_extra/_delegation.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ def nan_to_num(
124124
Replace NaN with zero and infinity with large finite numbers (default behaviour).
125125
126126
If `x` is inexact, NaN is replaced by zero or by the user defined value in
127-
`nan` keyword, infinity is replaced by the largest finite floating point
128-
values representable by ``x.dtype`` and -infinity is replaced by the most
129-
negative finite floating point values representable by ``x.dtype``.
127+
`fill_value` keyword, infinity is replaced by the largest finite floating
128+
point values representable by ``x.dtype`` and -infinity is replaced by the
129+
most negative finite floating point values representable by ``x.dtype``.
130130
131131
For complex dtypes, the above is applied to each of the real and
132132
imaginary components of `x` separately.
@@ -135,9 +135,9 @@ def nan_to_num(
135135
136136
Parameters
137137
----------
138-
x : array, float, complex
138+
x : array | float | complex
139139
Input data.
140-
fill_value : int, float, complex, optional
140+
fill_value : int | float | complex, optional
141141
Value to be used to fill NaN values. If no value is passed
142142
then NaN values will be replaced with 0.0.
143143
xp : array_namespace, optional

0 commit comments

Comments
 (0)