Commit 3ace2fb
* Use `Self` rather than concrete types, remove `cast`s
This should also allow for subtyping
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Undo one `Self`
* Unused ignore
* Add check for redundant self annotations
* And `DataWithCoords`
* And `DataArray` & `Dataset`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* And `Variable`
* Update xarray/core/dataarray.py
Co-authored-by: Michael Niklas <[email protected]>
* Update xarray/core/dataarray.py
Co-authored-by: Michael Niklas <[email protected]>
* Update xarray/core/dataarray.py
Co-authored-by: Michael Niklas <[email protected]>
* Clean-ups — `other`, casts, obsolete comments
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* another one
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Michael Niklas <[email protected]>
1 parent 96cf77a commit 3ace2fb
File tree
9 files changed
+400
-433
lines changed- xarray
- core
- tests
9 files changed
+400
-433
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2386 | 2386 | | |
2387 | 2387 | | |
2388 | 2388 | | |
2389 | | - | |
| 2389 | + | |
2390 | 2390 | | |
2391 | 2391 | | |
2392 | 2392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
381 | 382 | | |
382 | 383 | | |
383 | 384 | | |
384 | | - | |
| 385 | + | |
385 | 386 | | |
386 | 387 | | |
387 | 388 | | |
388 | | - | |
| 389 | + | |
389 | 390 | | |
390 | 391 | | |
391 | 392 | | |
| |||
414 | 415 | | |
415 | 416 | | |
416 | 417 | | |
417 | | - | |
| 418 | + | |
418 | 419 | | |
419 | 420 | | |
420 | 421 | | |
421 | 422 | | |
422 | | - | |
| 423 | + | |
423 | 424 | | |
424 | 425 | | |
425 | 426 | | |
| |||
472 | 473 | | |
473 | 474 | | |
474 | 475 | | |
475 | | - | |
| 476 | + | |
476 | 477 | | |
477 | 478 | | |
478 | | - | |
| 479 | + | |
479 | 480 | | |
480 | 481 | | |
481 | 482 | | |
| |||
620 | 621 | | |
621 | 622 | | |
622 | 623 | | |
623 | | - | |
624 | | - | |
625 | | - | |
| 624 | + | |
626 | 625 | | |
627 | 626 | | |
628 | 627 | | |
| |||
1061 | 1060 | | |
1062 | 1061 | | |
1063 | 1062 | | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
| 1063 | + | |
1067 | 1064 | | |
1068 | 1065 | | |
1069 | 1066 | | |
| |||
1208 | 1205 | | |
1209 | 1206 | | |
1210 | 1207 | | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
| 1208 | + | |
1214 | 1209 | | |
1215 | 1210 | | |
1216 | 1211 | | |
| |||
1253 | 1248 | | |
1254 | 1249 | | |
1255 | 1250 | | |
1256 | | - | |
1257 | | - | |
1258 | | - | |
| 1251 | + | |
1259 | 1252 | | |
1260 | 1253 | | |
1261 | 1254 | | |
| |||
1298 | 1291 | | |
1299 | 1292 | | |
1300 | 1293 | | |
1301 | | - | |
| 1294 | + | |
1302 | 1295 | | |
1303 | 1296 | | |
1304 | 1297 | | |
| |||
1347 | 1340 | | |
1348 | 1341 | | |
1349 | 1342 | | |
1350 | | - | |
| 1343 | + | |
1351 | 1344 | | |
1352 | 1345 | | |
1353 | 1346 | | |
1354 | 1347 | | |
1355 | 1348 | | |
1356 | 1349 | | |
1357 | 1350 | | |
1358 | | - | |
| 1351 | + | |
1359 | 1352 | | |
1360 | 1353 | | |
1361 | 1354 | | |
| |||
1422 | 1415 | | |
1423 | 1416 | | |
1424 | 1417 | | |
1425 | | - | |
| 1418 | + | |
1426 | 1419 | | |
1427 | 1420 | | |
1428 | 1421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
508 | | - | |
| 507 | + | |
509 | 508 | | |
510 | 509 | | |
511 | 510 | | |
| |||
708 | 707 | | |
709 | 708 | | |
710 | 709 | | |
711 | | - | |
712 | | - | |
| 710 | + | |
713 | 711 | | |
714 | 712 | | |
715 | 713 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
| 428 | + | |
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
440 | | - | |
| 440 | + | |
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
569 | | - | |
570 | | - | |
| 568 | + | |
571 | 569 | | |
572 | 570 | | |
573 | 571 | | |
| |||
656 | 654 | | |
657 | 655 | | |
658 | 656 | | |
659 | | - | |
| 657 | + | |
660 | 658 | | |
661 | 659 | | |
662 | 660 | | |
663 | 661 | | |
664 | 662 | | |
665 | 663 | | |
666 | 664 | | |
667 | | - | |
668 | | - | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
669 | 675 | | |
670 | 676 | | |
671 | 677 | | |
| |||
915 | 921 | | |
916 | 922 | | |
917 | 923 | | |
918 | | - | |
919 | | - | |
920 | | - | |
| 924 | + | |
921 | 925 | | |
922 | 926 | | |
923 | 927 | | |
| |||
0 commit comments