Skip to content

Commit 0855bed

Browse files
committed
fix typing
1 parent 6f4d194 commit 0855bed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xarray/core/options.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class T_Options(TypedDict):
6060
use_flox: bool
6161
use_numbagg: bool
6262
use_opt_einsum: bool
63-
time_resolution: Literal["s", "ms", "us", "ns"]
63+
time_resolution: str
6464

6565

6666
OPTIONS: T_Options = {
@@ -163,7 +163,7 @@ def _get_keep_attrs(default: bool) -> bool:
163163
return _get_boolean_with_default("keep_attrs", default)
164164

165165

166-
def _get_datetime_resolution() -> Literal["s", "ms", "us", "ns"]:
166+
def _get_datetime_resolution() -> str:
167167
return OPTIONS["time_resolution"]
168168

169169

0 commit comments

Comments
 (0)