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 Oct 2, 2023
1 parent 891a97e commit b533577
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 3 additions & 5 deletions flox/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@
import sys
import warnings
from collections import namedtuple
from collections.abc import Mapping, Sequence
from functools import partial, reduce
from numbers import Integral
from typing import (
TYPE_CHECKING,
Any,
Callable,
Dict,
Literal,
Mapping,
Sequence,
Union,
overload,
)
Expand Down Expand Up @@ -74,8 +72,8 @@
T_IsBins = Union[bool | Sequence[bool]]


IntermediateDict = Dict[Union[str, Callable], Any]
FinalResultsDict = Dict[str, Union["DaskArray", np.ndarray]]
IntermediateDict = dict[Union[str, Callable], Any]
FinalResultsDict = dict[str, Union["DaskArray", np.ndarray]]
FactorProps = namedtuple("FactorProps", "offset_group nan_sentinel nanmask")

# This dummy axis is inserted using np.expand_dims
Expand Down
3 changes: 2 additions & 1 deletion flox/xarray.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

from typing import TYPE_CHECKING, Any, Hashable, Iterable, Sequence, Union
from collections.abc import Hashable, Iterable, Sequence
from typing import TYPE_CHECKING, Any, Union

import numpy as np
import pandas as pd
Expand Down
3 changes: 2 additions & 1 deletion flox/xrutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# defined in xarray

import datetime
from typing import Any, Iterable
from collections.abc import Iterable
from typing import Any

import numpy as np
import pandas as pd
Expand Down

0 comments on commit b533577

Please sign in to comment.