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 Jan 12, 2024
1 parent 929b70c commit 25a5749
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xarray/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import datetime
import sys
from collections.abc import Hashable, Iterator, Mapping, Sequence, Collection
from collections.abc import Collection, Hashable, Iterator, Mapping, Sequence
from typing import (
TYPE_CHECKING,
Any,
Expand Down
2 changes: 1 addition & 1 deletion xarray/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ def parse_dims(
if isinstance(dim, Collection) and not isinstance(dim, str):
dim = tuple(dim)
else:
dim = (dim, )
dim = (dim,)

if check_exists:
_check_dims(set(dim), set(all_dims))
Expand Down
2 changes: 1 addition & 1 deletion xarray/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from collections.abc import Hashable, Iterable
from collections.abc import Hashable

import numpy as np
import pandas as pd
Expand Down

0 comments on commit 25a5749

Please sign in to comment.