Skip to content

Commit 89fe85a

Browse files
committed
Fix type annotation for ord
Optional only takes one argument. It must be Optional[Union[...]] to be valid.
1 parent f11f7c0 commit 89fe85a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/API_specification/linear_algebra_functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Computes the matrix or vector norm of `x`.
183183

184184
- If `True`, the axes (dimensions) specified by `axis` must be included in the result as singleton dimensions, and, accordingly, the result must be compatible with the input array (see {ref}`broadcasting`). Otherwise, if `False`, the axes (dimensions) specified by `axis` must not be included in the result. Default: `False`.
185185

186-
- **ord**: _Optional\[ int, float, Literal\[ inf, -inf, 'fro', 'nuc' ] ]_
186+
- **ord**: _Optional\[ Union\[ int, float, Literal\[ inf, -inf, 'fro', 'nuc' ] ] ]_
187187

188188
- order of the norm. The following mathematical norms must be supported:
189189

0 commit comments

Comments
 (0)