Commit cde7750
authored
* Annotate window/path/on_gpu_failure on public geotiff API (#1654)
The api-consistency sweep on 2026-05-12 found the same parameter is
annotated on some siblings but not on others across the public
xrspatial.geotiff surface. Pin each annotation so type-checkers and
IDEs validate user code consistently.
- window: tuple | None on open_geotiff and read_vrt (read_geotiff_dask
and read_geotiff_gpu already had it).
- path: str | BinaryIO on to_geotiff and write_geotiff_gpu. write_vrt
stays str-only because VRT writes are path-only by design.
- on_gpu_failure: str on open_geotiff and read_geotiff_gpu. The
deprecated gpu alias on read_geotiff_gpu carries the same str hint.
Annotation-only change; no runtime behaviour, defaults, or kwarg
renames. BinaryIO is imported under TYPE_CHECKING so the runtime
import cost stays at zero with from __future__ import annotations.
test_signature_annotations_1654.py pins each annotation to guard
against future signature drift. Also updates the api-consistency
sweep state CSV.
* Use tmp_path fixture for Windows-compatible cleanup (#1658)
1 parent 181bce7 commit cde7750
3 files changed
Lines changed: 148 additions & 9 deletions
File tree
- .claude
- xrspatial/geotiff
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
446 | 450 | | |
447 | 451 | | |
448 | 452 | | |
449 | | - | |
| 453 | + | |
| 454 | + | |
450 | 455 | | |
451 | 456 | | |
452 | 457 | | |
453 | 458 | | |
454 | 459 | | |
455 | 460 | | |
456 | | - | |
| 461 | + | |
| 462 | + | |
457 | 463 | | |
458 | 464 | | |
459 | 465 | | |
| |||
905 | 911 | | |
906 | 912 | | |
907 | 913 | | |
908 | | - | |
| 914 | + | |
| 915 | + | |
909 | 916 | | |
910 | 917 | | |
911 | 918 | | |
| |||
2178 | 2185 | | |
2179 | 2186 | | |
2180 | 2187 | | |
2181 | | - | |
2182 | | - | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
2183 | 2191 | | |
2184 | 2192 | | |
2185 | 2193 | | |
| |||
2714 | 2722 | | |
2715 | 2723 | | |
2716 | 2724 | | |
2717 | | - | |
| 2725 | + | |
2718 | 2726 | | |
2719 | 2727 | | |
2720 | 2728 | | |
| |||
3069 | 3077 | | |
3070 | 3078 | | |
3071 | 3079 | | |
3072 | | - | |
| 3080 | + | |
| 3081 | + | |
3073 | 3082 | | |
3074 | 3083 | | |
3075 | 3084 | | |
| |||
Lines changed: 131 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
0 commit comments