Skip to content

Commit a1769ba

Browse files
committed
polish
1 parent 94bcb32 commit a1769ba

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

xarray/util/generate_reductions.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
except ImportError:
3636
flox = None'''
3737

38-
3938
DEFAULT_PREAMBLE = """
4039
4140
class {obj}{cls}Reductions:
@@ -133,7 +132,6 @@ def {method}(
133132
“Delta Degrees of Freedom”: the divisor used in the calculation is ``N - ddof``,
134133
where ``N`` represents the number of elements."""
135134

136-
137135
_KEEP_ATTRS_DOCSTRING = """keep_attrs : bool, optional
138136
If True, ``attrs`` will be copied from the original
139137
object to the new one. If False (default), the new object will be
@@ -289,6 +287,7 @@ def generate_example(self, method):
289287
).format(calculation=calculation, method=method.name)
290288
else:
291289
extra_examples = ""
290+
292291
return f"""
293292
Examples
294293
--------{create_da}{self.datastructure.docstring_create}
@@ -421,7 +420,6 @@ class DataStructure:
421420
see_also_obj="Dataset",
422421
definition_preamble=DEFAULT_PREAMBLE,
423422
)
424-
425423
DATAARRAY_GROUPBY_GENERATOR = GroupByReductionGenerator(
426424
cls="GroupBy",
427425
datastructure=DATAARRAY_OBJECT,
@@ -441,7 +439,6 @@ class DataStructure:
441439
example_call_preamble='.resample(time="3M")',
442440
definition_preamble=GROUPBY_PREAMBLE,
443441
)
444-
445442
DATASET_GROUPBY_GENERATOR = GenericReductionGenerator(
446443
cls="GroupBy",
447444
datastructure=DATASET_OBJECT,

0 commit comments

Comments
 (0)