From 13caf96efb3f121e232a35aafceed80c832a9876 Mon Sep 17 00:00:00 2001 From: keewis Date: Thu, 27 Aug 2020 20:02:10 +0200 Subject: [PATCH] remove the spurious trailing comma (#4384) --- xarray/core/merge.py | 4 +--- xarray/testing.py | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/xarray/core/merge.py b/xarray/core/merge.py index 8a0ebfd35c2..231e1f7db10 100644 --- a/xarray/core/merge.py +++ b/xarray/core/merge.py @@ -56,9 +56,7 @@ ) -def broadcast_dimension_size( - variables: List[Variable], -) -> Dict[Hashable, int]: +def broadcast_dimension_size(variables: List[Variable]) -> Dict[Hashable, int]: """Extract dimension sizes from a dictionary of variables. Raises ValueError if any dimensions have different sizes. diff --git a/xarray/testing.py b/xarray/testing.py index 4f5d9037a7d..13efd57579c 100644 --- a/xarray/testing.py +++ b/xarray/testing.py @@ -322,9 +322,7 @@ def _assert_dataset_invariants(ds: Dataset): assert isinstance(ds._attrs, (type(None), dict)) -def _assert_internal_invariants( - xarray_obj: Union[DataArray, Dataset, Variable], -): +def _assert_internal_invariants(xarray_obj: Union[DataArray, Dataset, Variable]): """Validate that an xarray object satisfies its own internal invariants. This exists for the benefit of xarray's own test suite, but may be useful