@@ -120,7 +120,7 @@ def {method}(
120
120
]
121
121
_NUMERIC_ONLY_NOTES = "Non-numeric variables will be removed prior to reducing."
122
122
123
- extra_kwarg = collections .namedtuple ("extra_kwarg " , "docs kwarg call example" )
123
+ ExtraKwarg = collections .namedtuple ("ExtraKwarg " , "docs kwarg call example" )
124
124
skipna = extra_kwarg (
125
125
docs = _SKIPNA_DOCSTRING ,
126
126
kwarg = "skipna: bool = None," ,
@@ -279,7 +279,8 @@ def generate_code(self, method):
279
279
extra_kwargs = textwrap .indent ("\n " + "\n " .join (extra_kwargs ), 12 * " " )
280
280
else :
281
281
extra_kwargs = ""
282
- return f""" return self.reduce(
282
+ return f"""\
283
+ return self.reduce(
283
284
duck_array_ops.{ method .array_method } ,
284
285
dim=dim,{ extra_kwargs }
285
286
keep_attrs=keep_attrs,
@@ -310,7 +311,7 @@ class DataStructure:
310
311
numeric_only : bool = False
311
312
312
313
313
- DatasetObject = DataStructure (
314
+ DATASET_OBJECT = DataStructure (
314
315
name = "Dataset" ,
315
316
docstring_create = """
316
317
>>> ds = xr.Dataset(dict(da=da))
@@ -326,7 +327,7 @@ class DataStructure:
326
327
numeric_only = False ,
327
328
)
328
329
329
- DatasetGenerator = GenericReductionGenerator (
330
+ DATASET_GENERATOR = GenericReductionGenerator (
330
331
cls = "" ,
331
332
datastructure = DatasetObject ,
332
333
methods = REDUCTION_METHODS ,
0 commit comments