@@ -345,102 +345,102 @@ assert_type(c8 / b_, np.complex64)
345
345
346
346
# Complex
347
347
348
- assert_type (c16 + f16 , np .complexfloating [ _64Bit , _64Bit ] | np .complexfloating [_128Bit , _128Bit ])
348
+ assert_type (c16 + f16 , np .complex128 | np .complexfloating [_128Bit , _128Bit ])
349
349
assert_type (c16 + c16 , np .complex128 )
350
350
assert_type (c16 + f8 , np .complex128 )
351
351
assert_type (c16 + i8 , np .complex128 )
352
- assert_type (c16 + c8 , np .complexfloating [_32Bit , _32Bit ] | np . complexfloating [ _64Bit , _64Bit ])
353
- assert_type (c16 + f4 , np .complexfloating [ _32Bit , _32Bit ] | np .complexfloating [ _64Bit , _64Bit ] )
354
- assert_type (c16 + i4 , np .complexfloating [ _32Bit , _32Bit ] | np .complexfloating [ _64Bit , _64Bit ] )
352
+ assert_type (c16 + c8 , np .complexfloating [_64Bit , _64Bit ])
353
+ assert_type (c16 + f4 , np .complex128 | np .complex64 )
354
+ assert_type (c16 + i4 , np .complex128 | np .complex64 )
355
355
assert_type (c16 + b_ , np .complex128 )
356
356
assert_type (c16 + b , np .complex128 )
357
357
assert_type (c16 + c , np .complex128 )
358
358
assert_type (c16 + f , np .complex128 )
359
359
assert_type (c16 + AR_f , npt .NDArray [np .complexfloating [Any , Any ]])
360
360
361
- assert_type (f16 + c16 , np .complexfloating [ _64Bit , _64Bit ] | np .complexfloating [_128Bit , _128Bit ])
361
+ assert_type (f16 + c16 , np .complex128 | np .complexfloating [_128Bit , _128Bit ])
362
362
assert_type (c16 + c16 , np .complex128 )
363
363
assert_type (f8 + c16 , np .complex128 )
364
- assert_type (i8 + c16 , np .complex128 )
365
- assert_type (c8 + c16 , np .complexfloating [ _32Bit , _32Bit ] | np .complexfloating [ _64Bit , _64Bit ] )
366
- assert_type (f4 + c16 , np .complexfloating [ _32Bit , _32Bit ] | np .complexfloating [ _64Bit , _64Bit ] )
367
- assert_type (i4 + c16 , np .complexfloating [ _32Bit , _32Bit ] | np .complexfloating [ _64Bit , _64Bit ] )
364
+ assert_type (i8 + c16 , np .complexfloating [ _64Bit , _64Bit ] )
365
+ assert_type (c8 + c16 , np .complex128 | np .complex64 )
366
+ assert_type (f4 + c16 , np .complex128 | np .complex64 )
367
+ assert_type (i4 + c16 , np .complex128 | np .complex64 )
368
368
assert_type (b_ + c16 , np .complex128 )
369
369
assert_type (b + c16 , np .complex128 )
370
370
assert_type (c + c16 , np .complex128 )
371
371
assert_type (f + c16 , np .complex128 )
372
372
assert_type (AR_f + c16 , npt .NDArray [np .complexfloating [Any , Any ]])
373
373
374
374
assert_type (c8 + f16 , np .complexfloating [_32Bit , _32Bit ] | np .complexfloating [_128Bit , _128Bit ])
375
- assert_type (c8 + c16 , np .complexfloating [ _32Bit , _32Bit ] | np .complexfloating [ _64Bit , _64Bit ] )
376
- assert_type (c8 + f8 , np .complexfloating [ _32Bit , _32Bit ] | np .complexfloating [ _64Bit , _64Bit ] )
375
+ assert_type (c8 + c16 , np .complex64 | np .complex128 )
376
+ assert_type (c8 + f8 , np .complex64 | np .complex128 )
377
377
assert_type (c8 + i8 , np .complexfloating [_32Bit , _32Bit ] | np .complexfloating [_64Bit , _64Bit ])
378
378
assert_type (c8 + c8 , np .complex64 )
379
379
assert_type (c8 + f4 , np .complex64 )
380
380
assert_type (c8 + i4 , np .complex64 )
381
381
assert_type (c8 + b_ , np .complex64 )
382
382
assert_type (c8 + b , np .complex64 )
383
- assert_type (c8 + c , np .complexfloating [ _32Bit , _32Bit ] | np .complexfloating [ _64Bit , _64Bit ] )
384
- assert_type (c8 + f , np .complexfloating [ _32Bit , _32Bit ] | np .complexfloating [ _64Bit , _64Bit ] )
383
+ assert_type (c8 + c , np .complex64 | np .complex128 )
384
+ assert_type (c8 + f , np .complex64 | np .complex128 )
385
385
assert_type (c8 + AR_f , npt .NDArray [np .complexfloating [Any , Any ]])
386
386
387
387
assert_type (f16 + c8 , np .complexfloating [_32Bit , _32Bit ] | np .complexfloating [_128Bit , _128Bit ])
388
- assert_type (c16 + c8 , np .complexfloating [_32Bit , _32Bit ] | np . complexfloating [ _64Bit , _64Bit ])
389
- assert_type (f8 + c8 , np .complexfloating [_32Bit , _32Bit ] | np . complexfloating [ _64Bit , _64Bit ])
388
+ assert_type (c16 + c8 , np .complexfloating [_64Bit , _64Bit ])
389
+ assert_type (f8 + c8 , np .complexfloating [_64Bit , _64Bit ])
390
390
assert_type (i8 + c8 , np .complexfloating [_32Bit , _32Bit ] | np .complexfloating [_64Bit , _64Bit ])
391
391
assert_type (c8 + c8 , np .complex64 )
392
392
assert_type (f4 + c8 , np .complex64 )
393
393
assert_type (i4 + c8 , np .complex64 )
394
394
assert_type (b_ + c8 , np .complex64 )
395
395
assert_type (b + c8 , np .complex64 )
396
- assert_type (c + c8 , np .complexfloating [ _32Bit , _32Bit ] | np .complexfloating [ _64Bit , _64Bit ] )
397
- assert_type (f + c8 , np .complexfloating [ _32Bit , _32Bit ] | np .complexfloating [ _64Bit , _64Bit ] )
396
+ assert_type (c + c8 , np .complex64 | np .complex128 )
397
+ assert_type (f + c8 , np .complex64 | np .complex128 )
398
398
assert_type (AR_f + c8 , npt .NDArray [np .complexfloating [Any , Any ]])
399
399
400
400
# Float
401
401
402
- assert_type (f8 + f16 , np .floating [ _64Bit ] | np .floating [_128Bit ])
402
+ assert_type (f8 + f16 , np .float64 | np .floating [_128Bit ])
403
403
assert_type (f8 + f8 , np .float64 )
404
404
assert_type (f8 + i8 , np .float64 )
405
- assert_type (f8 + f4 , np .floating [ _32Bit ] | np .floating [_64Bit ])
406
- assert_type (f8 + i4 , np .floating [ _32Bit ] | np .floating [_64Bit ])
405
+ assert_type (f8 + f4 , np .float64 | np .floating [_32Bit ])
406
+ assert_type (f8 + i4 , np .float64 | np .floating [_32Bit ])
407
407
assert_type (f8 + b_ , np .float64 )
408
408
assert_type (f8 + b , np .float64 )
409
- assert_type (f8 + c , np .complex128 )
409
+ assert_type (f8 + c , np .float64 | np . complex128 )
410
410
assert_type (f8 + f , np .float64 )
411
411
assert_type (f8 + AR_f , npt .NDArray [np .floating [Any ]])
412
412
413
- assert_type (f16 + f8 , np .floating [_64Bit ] | np .floating [ _128Bit ] )
413
+ assert_type (f16 + f8 , np .floating [_128Bit ] | np .float64 )
414
414
assert_type (f8 + f8 , np .float64 )
415
- assert_type (i8 + f8 , np .float64 )
416
- assert_type (f4 + f8 , np .floating [_32Bit ] | np .floating [ _64Bit ] )
417
- assert_type (i4 + f8 , np .floating [_32Bit ] | np .floating [ _64Bit ] )
415
+ assert_type (i8 + f8 , np .floating [ _64Bit ] )
416
+ assert_type (f4 + f8 , np .floating [_32Bit ] | np .float64 )
417
+ assert_type (i4 + f8 , np .floating [_32Bit ] | np .float64 )
418
418
assert_type (b_ + f8 , np .float64 )
419
419
assert_type (b + f8 , np .float64 )
420
- assert_type (c + f8 , np .complex128 )
420
+ assert_type (c + f8 , np .complex128 | np . float64 )
421
421
assert_type (f + f8 , np .float64 )
422
422
assert_type (AR_f + f8 , npt .NDArray [np .floating [Any ]])
423
423
424
- assert_type (f4 + f16 , np .floating [ _32Bit ] | np .floating [_128Bit ])
425
- assert_type (f4 + f8 , np .floating [ _32Bit ] | np .floating [ _64Bit ] )
426
- assert_type (f4 + i8 , np .floating [ _32Bit ] | np .floating [_64Bit ])
424
+ assert_type (f4 + f16 , np .float32 | np .floating [_128Bit ])
425
+ assert_type (f4 + f8 , np .float32 | np .float64 )
426
+ assert_type (f4 + i8 , np .float32 | np .floating [_64Bit ])
427
427
assert_type (f4 + f4 , np .float32 )
428
428
assert_type (f4 + i4 , np .float32 )
429
429
assert_type (f4 + b_ , np .float32 )
430
430
assert_type (f4 + b , np .float32 )
431
- assert_type (f4 + c , np .complexfloating [ _32Bit , _32Bit ] | np .complexfloating [ _64Bit , _64Bit ] )
432
- assert_type (f4 + f , np .floating [ _32Bit ] | np .floating [ _64Bit ] )
431
+ assert_type (f4 + c , np .complex64 | np .complex128 )
432
+ assert_type (f4 + f , np .float32 | np .float64 )
433
433
assert_type (f4 + AR_f , npt .NDArray [np .floating [Any ]])
434
434
435
- assert_type (f16 + f4 , np .floating [_32Bit ] | np .floating [ _128Bit ] )
436
- assert_type (f8 + f4 , np .floating [ _32Bit ] | np .floating [ _64Bit ] )
435
+ assert_type (f16 + f4 , np .floating [_128Bit ] | np .float32 )
436
+ assert_type (f8 + f4 , np .float64 | np .float32 )
437
437
assert_type (i8 + f4 , np .floating [_32Bit ] | np .floating [_64Bit ])
438
438
assert_type (f4 + f4 , np .float32 )
439
439
assert_type (i4 + f4 , np .float32 )
440
440
assert_type (b_ + f4 , np .float32 )
441
441
assert_type (b + f4 , np .float32 )
442
- assert_type (c + f4 , np .complexfloating [ _32Bit , _32Bit ] | np .complexfloating [ _64Bit , _64Bit ] )
443
- assert_type (f + f4 , np .floating [ _32Bit ] | np .floating [ _64Bit ] )
442
+ assert_type (c + f4 , np .complex64 | np .complex128 )
443
+ assert_type (f + f4 , np .float64 | np .float32 )
444
444
assert_type (AR_f + f4 , npt .NDArray [np .floating [Any ]])
445
445
446
446
# Int
@@ -451,17 +451,17 @@ assert_type(i8 + i4, np.signedinteger[_32Bit] | np.signedinteger[_64Bit])
451
451
assert_type (i8 + u4 , Any )
452
452
assert_type (i8 + b_ , np .int64 )
453
453
assert_type (i8 + b , np .int64 )
454
- assert_type (i8 + c , np .complex128 )
455
- assert_type (i8 + f , np .float64 )
454
+ assert_type (i8 + c , np .complexfloating [ _64Bit , _64Bit ] )
455
+ assert_type (i8 + f , np .floating [ _64Bit ] )
456
456
assert_type (i8 + AR_f , npt .NDArray [np .floating [Any ]])
457
457
458
458
assert_type (u8 + u8 , np .uint64 )
459
459
assert_type (u8 + i4 , Any )
460
460
assert_type (u8 + u4 , np .unsignedinteger [_32Bit ] | np .unsignedinteger [_64Bit ])
461
461
assert_type (u8 + b_ , np .uint64 )
462
462
assert_type (u8 + b , np .uint64 )
463
- assert_type (u8 + c , np .complex128 )
464
- assert_type (u8 + f , np .float64 )
463
+ assert_type (u8 + c , np .complexfloating [ _64Bit , _64Bit ] )
464
+ assert_type (u8 + f , np .floating [ _64Bit ] )
465
465
assert_type (u8 + AR_f , npt .NDArray [np .floating [Any ]])
466
466
467
467
assert_type (i8 + i8 , np .int64 )
@@ -470,17 +470,17 @@ assert_type(i4 + i8, np.signedinteger[_32Bit] | np.signedinteger[_64Bit])
470
470
assert_type (u4 + i8 , Any )
471
471
assert_type (b_ + i8 , np .int64 )
472
472
assert_type (b + i8 , np .int64 )
473
- assert_type (c + i8 , np .complex128 )
474
- assert_type (f + i8 , np .float64 )
473
+ assert_type (c + i8 , np .complexfloating [ _64Bit , _64Bit ] )
474
+ assert_type (f + i8 , np .floating [ _64Bit ] )
475
475
assert_type (AR_f + i8 , npt .NDArray [np .floating [Any ]])
476
476
477
477
assert_type (u8 + u8 , np .uint64 )
478
478
assert_type (i4 + u8 , Any )
479
479
assert_type (u4 + u8 , np .unsignedinteger [_32Bit ] | np .unsignedinteger [_64Bit ])
480
480
assert_type (b_ + u8 , np .uint64 )
481
481
assert_type (b + u8 , np .uint64 )
482
- assert_type (c + u8 , np .complex128 )
483
- assert_type (f + u8 , np .float64 )
482
+ assert_type (c + u8 , np .complexfloating [ _64Bit , _64Bit ] )
483
+ assert_type (f + u8 , np .floating [ _64Bit ] )
484
484
assert_type (AR_f + u8 , npt .NDArray [np .floating [Any ]])
485
485
486
486
assert_type (i4 + i8 , np .signedinteger [_32Bit ] | np .signedinteger [_64Bit ])
0 commit comments