@@ -49,8 +49,7 @@ def unique_variable(name, variables, compat='broadcast_equals'):
4949 variables : list of xarray.Variable
5050 List of Variable objects, all of which go by the same name in different
5151 inputs.
52- compat : {'identical', 'equals', 'broadcast_equals',
53- 'no_conflicts'}, optional
52+ compat : {'identical', 'equals', 'broadcast_equals', 'no_conflicts'}, optional
5453 Type of equality check to use.
5554
5655 Returns
@@ -60,7 +59,7 @@ def unique_variable(name, variables, compat='broadcast_equals'):
6059 Raises
6160 ------
6261 MergeError: if any of the variables are not equal.
63- """
62+ """ # noqa
6463 out = variables [0 ]
6564 if len (variables ) > 1 :
6665 combine_method = None
@@ -122,16 +121,15 @@ def merge_variables(
122121 priority_vars : mapping with Variable or None values, optional
123122 If provided, variables are always taken from this dict in preference to
124123 the input variable dictionaries, without checking for conflicts.
125- compat : {'identical', 'equals', 'broadcast_equals',
126- 'minimal', 'no_conflicts'}, optional
124+ compat : {'identical', 'equals', 'broadcast_equals', 'minimal', 'no_conflicts'}, optional
127125 Type of equality check to use when checking for conflicts.
128126
129127 Returns
130128 -------
131129 OrderedDict with keys taken by the union of keys on list_of_variable_dicts,
132130 and Variable values corresponding to those that should be found on the
133131 merged result.
134- """
132+ """ # noqa
135133 if priority_vars is None :
136134 priority_vars = {}
137135
@@ -313,15 +311,14 @@ def _get_priority_vars(objects, priority_arg, compat='equals'):
313311 Dictionaries in which to find the priority variables.
314312 priority_arg : int or None
315313 Integer object whose variable should take priority.
316- compat : {'identical', 'equals', 'broadcast_equals',
317- 'no_conflicts'}, optional
314+ compat : {'identical', 'equals', 'broadcast_equals', 'no_conflicts'}, optional
318315 Compatibility checks to use when merging variables.
319316
320317 Returns
321318 -------
322319 None, if priority_arg is None, or an OrderedDict with Variable objects as
323320 values indicating priority variables.
324- """
321+ """ # noqa
325322 if priority_arg is None :
326323 priority_vars = {}
327324 else :
@@ -406,8 +403,7 @@ def merge_core(objs,
406403 ----------
407404 objs : list of mappings
408405 All values must be convertable to labeled arrays.
409- compat : {'identical', 'equals', 'broadcast_equals',
410- 'no_conflicts'}, optional
406+ compat : {'identical', 'equals', 'broadcast_equals', 'no_conflicts'}, optional
411407 Compatibility checks to use when merging variables.
412408 join : {'outer', 'inner', 'left', 'right'}, optional
413409 How to combine objects with different indexes.
@@ -430,7 +426,7 @@ def merge_core(objs,
430426 Raises
431427 ------
432428 MergeError if the merge cannot be done successfully.
433- """
429+ """ # noqa
434430 from .dataset import calculate_dimensions
435431
436432 _assert_compat_valid (compat )
@@ -472,8 +468,7 @@ def merge(objects, compat='no_conflicts', join='outer'):
472468 objects : Iterable[Union[xarray.Dataset, xarray.DataArray, dict]]
473469 Merge together all variables from these objects. If any of them are
474470 DataArray objects, they must have a name.
475- compat : {'identical', 'equals', 'broadcast_equals',
476- 'no_conflicts'}, optional
471+ compat : {'identical', 'equals', 'broadcast_equals', 'no_conflicts'}, optional
477472 String indicating how to compare variables of the same name for
478473 potential conflicts:
479474
@@ -516,7 +511,7 @@ def merge(objects, compat='no_conflicts', join='outer'):
516511 See also
517512 --------
518513 concat
519- """
514+ """ # noqa
520515 from .dataarray import DataArray
521516 from .dataset import Dataset
522517
0 commit comments