From ce6f71d531544d6c8b6f1d31ea93ceda3a7dc52c Mon Sep 17 00:00:00 2001 From: Ryan May Date: Wed, 7 Jul 2021 11:45:10 -0600 Subject: [PATCH] MNT: Consolodate __all__'s in xarray Only the last one mattered anyway, but it's better for that to be at the top of the file. --- src/metpy/xarray.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/metpy/xarray.py b/src/metpy/xarray.py index e56012c2972..5448e3d8ae9 100644 --- a/src/metpy/xarray.py +++ b/src/metpy/xarray.py @@ -30,7 +30,7 @@ from ._vendor.xarray import either_dict_or_kwargs, expanded_indexer, is_dict_like from .units import DimensionalityError, UndefinedUnitError, units -__all__ = [] +__all__ = ('MetPyDataArrayAccessor', 'MetPyDatasetAccessor', 'grid_deltas_from_dataarray') metpy_axes = ['time', 'vertical', 'y', 'latitude', 'x', 'longitude'] # Define the criteria for coordinate matches @@ -1541,6 +1541,3 @@ def wrapper(*args, **kwargs): return func(*bound_args.args, **bound_args.kwargs) return wrapper - - -__all__ = ('MetPyDataArrayAccessor', 'MetPyDatasetAccessor', 'grid_deltas_from_dataarray')