summaryrefslogtreecommitdiff
path: root/numpy/core/einsumfunc.pyi
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/einsumfunc.pyi')
-rw-r--r--numpy/core/einsumfunc.pyi18
1 files changed, 9 insertions, 9 deletions
diff --git a/numpy/core/einsumfunc.pyi b/numpy/core/einsumfunc.pyi
index aabb04c47..9c020f8ba 100644
--- a/numpy/core/einsumfunc.pyi
+++ b/numpy/core/einsumfunc.pyi
@@ -1,4 +1,4 @@
-from typing import List, TypeVar, Optional, Any, overload, Union, Tuple, Sequence, Literal
+from typing import List, TypeVar, Any, overload, Union, Tuple, Sequence, Literal
from numpy import (
ndarray,
@@ -50,7 +50,7 @@ def einsum(
/,
*operands: _ArrayLikeBool_co,
out: None = ...,
- dtype: Optional[_DTypeLikeBool] = ...,
+ dtype: None | _DTypeLikeBool = ...,
order: _OrderKACF = ...,
casting: _CastingSafe = ...,
optimize: _OptimizeKind = ...,
@@ -61,7 +61,7 @@ def einsum(
/,
*operands: _ArrayLikeUInt_co,
out: None = ...,
- dtype: Optional[_DTypeLikeUInt] = ...,
+ dtype: None | _DTypeLikeUInt = ...,
order: _OrderKACF = ...,
casting: _CastingSafe = ...,
optimize: _OptimizeKind = ...,
@@ -72,7 +72,7 @@ def einsum(
/,
*operands: _ArrayLikeInt_co,
out: None = ...,
- dtype: Optional[_DTypeLikeInt] = ...,
+ dtype: None | _DTypeLikeInt = ...,
order: _OrderKACF = ...,
casting: _CastingSafe = ...,
optimize: _OptimizeKind = ...,
@@ -83,7 +83,7 @@ def einsum(
/,
*operands: _ArrayLikeFloat_co,
out: None = ...,
- dtype: Optional[_DTypeLikeFloat] = ...,
+ dtype: None | _DTypeLikeFloat = ...,
order: _OrderKACF = ...,
casting: _CastingSafe = ...,
optimize: _OptimizeKind = ...,
@@ -94,7 +94,7 @@ def einsum(
/,
*operands: _ArrayLikeComplex_co,
out: None = ...,
- dtype: Optional[_DTypeLikeComplex] = ...,
+ dtype: None | _DTypeLikeComplex = ...,
order: _OrderKACF = ...,
casting: _CastingSafe = ...,
optimize: _OptimizeKind = ...,
@@ -105,7 +105,7 @@ def einsum(
/,
*operands: Any,
casting: _CastingUnsafe,
- dtype: Optional[_DTypeLikeComplex_co] = ...,
+ dtype: None | _DTypeLikeComplex_co = ...,
out: None = ...,
order: _OrderKACF = ...,
optimize: _OptimizeKind = ...,
@@ -116,7 +116,7 @@ def einsum(
/,
*operands: _ArrayLikeComplex_co,
out: _ArrayType,
- dtype: Optional[_DTypeLikeComplex_co] = ...,
+ dtype: None | _DTypeLikeComplex_co = ...,
order: _OrderKACF = ...,
casting: _CastingSafe = ...,
optimize: _OptimizeKind = ...,
@@ -128,7 +128,7 @@ def einsum(
*operands: Any,
out: _ArrayType,
casting: _CastingUnsafe,
- dtype: Optional[_DTypeLikeComplex_co] = ...,
+ dtype: None | _DTypeLikeComplex_co = ...,
order: _OrderKACF = ...,
optimize: _OptimizeKind = ...,
) -> _ArrayType: ...