Skip to content

Commit bd4f048

Browse files
committed
black
1 parent e2ad69e commit bd4f048

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

xarray/core/weighted.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ def __init__(self, obj, weights): # noqa: F811
105105
self.weights = weights
106106

107107
def _sum_of_weights(
108-
self,
109-
da: "DataArray",
110-
dim: Optional[Union[Hashable, Iterable[Hashable]]] = None,
108+
self, da: "DataArray", dim: Optional[Union[Hashable, Iterable[Hashable]]] = None
111109
) -> "DataArray":
112110
""" Calculate the sum of weights, accounting for missing values """
113111

@@ -196,7 +194,7 @@ def __repr__(self):
196194

197195
msg = "{klass} with weights along dimensions: {weight_dims}"
198196
return msg.format(
199-
klass=self.__class__.__name__, weight_dims=", ".join(self.weights.dims),
197+
klass=self.__class__.__name__, weight_dims=", ".join(self.weights.dims)
200198
)
201199

202200

0 commit comments

Comments
 (0)