Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 13, 2024
1 parent bc664f6 commit 9e02728
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions xarray/conventions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down

0 comments on commit 9e02728

Please sign in to comment.