From 9e027288a95dc031b8eb3f08aaef4434899cfa52 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 13 Jul 2024 11:12:33 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- xarray/conventions.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xarray/conventions.py b/xarray/conventions.py index ba495637d73..ff1256883ba 100644 --- a/xarray/conventions.py +++ b/xarray/conventions.py @@ -387,9 +387,7 @@ def _update_bounds_encoding(variables: T_Variables) -> None: T = TypeVar("T") -def _item_or_default( - obj: Mapping[Any, T] | T, key: Hashable, default: T -) -> T: +def _item_or_default(obj: Mapping[Any, T] | T, key: Hashable, default: T) -> T: """ Return item by key if obj is mapping and key is present, else return default value. """