11"""Submodule for DataArray creation."""
2+
23__all__ = ["AsDataArray" , "asdataarray" ]
34
45
@@ -38,26 +39,23 @@ def asdataarray(
3839 dataclass : OptionedClass [PInit , TDataArray ],
3940 reference : Optional [AnyXarray ] = None ,
4041 dataoptions : None = None ,
41- ) -> TDataArray :
42- ...
42+ ) -> TDataArray : ...
4343
4444
4545@overload
4646def asdataarray (
4747 dataclass : DataClass [PInit ],
4848 reference : Optional [AnyXarray ] = None ,
4949 dataoptions : None = None ,
50- ) -> xr .DataArray :
51- ...
50+ ) -> xr .DataArray : ...
5251
5352
5453@overload
5554def asdataarray (
5655 dataclass : Any ,
5756 reference : Optional [AnyXarray ] = None ,
5857 dataoptions : DataOptions [TDataArray ] = DataOptions (xr .DataArray ),
59- ) -> TDataArray :
60- ...
58+ ) -> TDataArray : ...
6159
6260
6361def asdataarray (
@@ -119,16 +117,14 @@ def __get__(
119117 self ,
120118 obj : Any ,
121119 cls : Type [OptionedClass [PInit , TDataArray ]],
122- ) -> Callable [PInit , TDataArray ]:
123- ...
120+ ) -> Callable [PInit , TDataArray ]: ...
124121
125122 @overload
126123 def __get__ (
127124 self ,
128125 obj : Any ,
129126 cls : Type [DataClass [PInit ]],
130- ) -> Callable [PInit , xr .DataArray ]:
131- ...
127+ ) -> Callable [PInit , xr .DataArray ]: ...
132128
133129 def __get__ (self , obj : Any , cls : Any ) -> Any :
134130 return self .__func__ (cls )
@@ -158,8 +154,7 @@ def shaped(
158154 func : Callable [[Shape ], AnyArray ],
159155 shape : Union [Shape , Sizes ],
160156 ** kwargs : Any ,
161- ) -> TDataArray :
162- ...
157+ ) -> TDataArray : ...
163158
164159 @overload
165160 @classmethod
@@ -168,8 +163,7 @@ def shaped(
168163 func : Callable [[Shape ], AnyArray ],
169164 shape : Union [Shape , Sizes ],
170165 ** kwargs : Any ,
171- ) -> xr .DataArray :
172- ...
166+ ) -> xr .DataArray : ...
173167
174168 @classmethod
175169 def shaped (
@@ -204,8 +198,7 @@ def empty(
204198 shape : Union [Shape , Sizes ],
205199 order : Order = "C" ,
206200 ** kwargs : Any ,
207- ) -> TDataArray :
208- ...
201+ ) -> TDataArray : ...
209202
210203 @overload
211204 @classmethod
@@ -214,8 +207,7 @@ def empty(
214207 shape : Union [Shape , Sizes ],
215208 order : Order = "C" ,
216209 ** kwargs : Any ,
217- ) -> xr .DataArray :
218- ...
210+ ) -> xr .DataArray : ...
219211
220212 @classmethod
221213 def empty (
@@ -246,8 +238,7 @@ def zeros(
246238 shape : Union [Shape , Sizes ],
247239 order : Order = "C" ,
248240 ** kwargs : Any ,
249- ) -> TDataArray :
250- ...
241+ ) -> TDataArray : ...
251242
252243 @overload
253244 @classmethod
@@ -256,8 +247,7 @@ def zeros(
256247 shape : Union [Shape , Sizes ],
257248 order : Order = "C" ,
258249 ** kwargs : Any ,
259- ) -> xr .DataArray :
260- ...
250+ ) -> xr .DataArray : ...
261251
262252 @classmethod
263253 def zeros (
@@ -288,8 +278,7 @@ def ones(
288278 shape : Union [Shape , Sizes ],
289279 order : Order = "C" ,
290280 ** kwargs : Any ,
291- ) -> TDataArray :
292- ...
281+ ) -> TDataArray : ...
293282
294283 @overload
295284 @classmethod
@@ -298,8 +287,7 @@ def ones(
298287 shape : Union [Shape , Sizes ],
299288 order : Order = "C" ,
300289 ** kwargs : Any ,
301- ) -> xr .DataArray :
302- ...
290+ ) -> xr .DataArray : ...
303291
304292 @classmethod
305293 def ones (
@@ -331,8 +319,7 @@ def full(
331319 fill_value : Any ,
332320 order : Order = "C" ,
333321 ** kwargs : Any ,
334- ) -> TDataArray :
335- ...
322+ ) -> TDataArray : ...
336323
337324 @overload
338325 @classmethod
@@ -342,8 +329,7 @@ def full(
342329 fill_value : Any ,
343330 order : Order = "C" ,
344331 ** kwargs : Any ,
345- ) -> xr .DataArray :
346- ...
332+ ) -> xr .DataArray : ...
347333
348334 @classmethod
349335 def full (
0 commit comments