@@ -112,7 +112,7 @@ def _get_crs_from_attrs(obj: XarrayObject, sdims: Tuple[str, str]) -> Optional[C
112
112
"""
113
113
crs_set : Set [CRS ] = set ()
114
114
115
- def _add_candidate (crs ):
115
+ def _add_candidate (crs ) -> None :
116
116
if crs is None :
117
117
return
118
118
if isinstance (crs , str ):
@@ -127,11 +127,11 @@ def _add_candidate(crs):
127
127
else :
128
128
warnings .warn (f"Ignoring crs attribute of type: { type (crs )} " )
129
129
130
- def process_attrs (attrs ):
130
+ def process_attrs (attrs ) -> None :
131
131
_add_candidate (attrs .get ("crs" , None ))
132
132
_add_candidate (attrs .get ("crs_wkt" , None ))
133
133
134
- def process_datavar (x ):
134
+ def process_datavar (x ) -> None :
135
135
process_attrs (x .attrs )
136
136
for dim in sdims :
137
137
if dim in x .coords :
@@ -910,7 +910,7 @@ class ODCExtension:
910
910
Common accessors for both Array/Dataset.
911
911
"""
912
912
913
- def __init__ (self , state : GeoState ):
913
+ def __init__ (self , state : GeoState ) -> None :
914
914
self ._state = state
915
915
916
916
@property
@@ -987,7 +987,7 @@ class ODCExtensionDa(ODCExtension):
987
987
ODC extension for :py:class:`xarray.DataArray`.
988
988
"""
989
989
990
- def __init__ (self , xx : xarray .DataArray ):
990
+ def __init__ (self , xx : xarray .DataArray ) -> None :
991
991
ODCExtension .__init__ (self , _locate_geo_info (xx ))
992
992
self ._xx = xx
993
993
@@ -1042,7 +1042,7 @@ def nodata(self) -> Nodata:
1042
1042
return None
1043
1043
1044
1044
@nodata .setter
1045
- def nodata (self , value : Nodata ):
1045
+ def nodata (self , value : Nodata ) -> None :
1046
1046
nodata = resolve_nodata (value , self ._xx .dtype )
1047
1047
1048
1048
if nodata is None :
@@ -1069,7 +1069,7 @@ class ODCExtensionDs(ODCExtension):
1069
1069
ODC extension for :py:class:`xarray.Dataset`.
1070
1070
"""
1071
1071
1072
- def __init__ (self , ds : xarray .Dataset ):
1072
+ def __init__ (self , ds : xarray .Dataset ) -> None :
1073
1073
ODCExtension .__init__ (self , _locate_geo_info (ds ))
1074
1074
self ._xx = ds
1075
1075
@@ -1110,7 +1110,7 @@ def _xarray_geobox(xx: XarrayObject) -> Optional[GeoBox]:
1110
1110
return None
1111
1111
1112
1112
1113
- def register_geobox ():
1113
+ def register_geobox () -> None :
1114
1114
"""
1115
1115
Backwards compatiblity layer for datacube ``.geobox`` property.
1116
1116
"""
0 commit comments