Skip to content

Commit

Permalink
fix missing import in type_checking
Browse files Browse the repository at this point in the history
  • Loading branch information
headtr1ck committed Jul 12, 2024
1 parent 27db395 commit 5977107
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions xarray/coding/times.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from collections.abc import Hashable
from datetime import datetime, timedelta
from functools import partial
from typing import TYPE_CHECKING, Callable, Literal, Union, cast
from typing import Callable, Literal, Union, cast

import numpy as np
import pandas as pd
Expand Down Expand Up @@ -36,10 +36,9 @@
except ImportError:
cftime = None

if TYPE_CHECKING:
from xarray.core.types import CFCalendar, NPDatetimeUnitOptions, T_DuckArray
from xarray.core.types import CFCalendar, NPDatetimeUnitOptions, T_DuckArray

T_Name = Union[Hashable, None]
T_Name = Union[Hashable, None]

# standard calendars recognized by cftime
_STANDARD_CALENDARS = {"standard", "gregorian", "proleptic_gregorian"}
Expand Down

0 comments on commit 5977107

Please sign in to comment.