@@ -186,7 +186,7 @@ def linspace(self,
186186 num : int = 50 ,
187187 * , endpoint : bool = True ,
188188 retstep : Literal [False ] = False ,
189- dtype : DTypeLike = None ,
189+ dtype : DTypeLike | None = None ,
190190 axis : int = 0
191191 ) -> Array : ...
192192
@@ -197,7 +197,7 @@ def linspace(self,
197197 num : int = 50 ,
198198 * , endpoint : bool = True ,
199199 retstep : Literal [True ],
200- dtype : DTypeLike = None ,
200+ dtype : DTypeLike | None = None ,
201201 axis : int = 0
202202 ) -> tuple [Array , NDArray [Any ] | float ] | Array : ...
203203
@@ -207,7 +207,7 @@ def linspace(self,
207207 num : int = 50 ,
208208 * , endpoint : bool = True ,
209209 retstep : bool = False ,
210- dtype : DTypeLike = None ,
210+ dtype : DTypeLike | None = None ,
211211 axis : int = 0
212212 ) -> tuple [Array , NDArray [Any ] | float ] | Array :
213213 num = operator .index (num )
@@ -446,19 +446,19 @@ def where(self,
446446 def sum (self ,
447447 a : ArrayOrContainer , / ,
448448 axis : int | tuple [int , ...] | None = None ,
449- dtype : DTypeLike = None ,
449+ dtype : DTypeLike | None = None ,
450450 ) -> Array : ...
451451 @overload
452452 def sum (self ,
453453 a : ScalarLike , / ,
454454 axis : int | tuple [int , ...] | None = None ,
455- dtype : DTypeLike = None ,
455+ dtype : DTypeLike | None = None ,
456456 ) -> ScalarLike : ...
457457
458458 def sum (self ,
459459 a : ArrayOrContainerOrScalar , / ,
460460 axis : int | tuple [int , ...] | None = None ,
461- dtype : DTypeLike = None ,
461+ dtype : DTypeLike | None = None ,
462462 ) -> ArrayOrScalar : ...
463463
464464 @overload
0 commit comments