@@ -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